config.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. * @defgroup Resources Resources
  6. * @ingroup UnaModules
  7. *
  8. * @{
  9. */
  10. $aConfig = [
  11. /**
  12. * Main Section.
  13. */
  14. 'type' => BX_DOL_MODULE_TYPE_MODULE,
  15. 'name' => 'bx_resources',
  16. 'title' => 'Resources',
  17. 'note' => 'Resources, shared resources',
  18. 'version' => '15.0.0.DEV',
  19. 'vendor' => 'UNA INC',
  20. 'help_url' => 'http://feed.una.io/?section={module_name}',
  21. 'compatible_with' => [
  22. '15.0.x'
  23. ],
  24. /**
  25. * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
  26. */
  27. 'home_dir' => 'boonex/resources/',
  28. 'home_uri' => 'resources',
  29. 'db_prefix' => 'bx_resources_',
  30. 'class_prefix' => 'BxResources',
  31. /**
  32. * Category for language keys.
  33. */
  34. 'language_category' => 'Resources',
  35. /**
  36. * List of page triggers.
  37. */
  38. 'page_triggers' => [
  39. 'trigger_page_profile_view_entry',
  40. 'trigger_page_group_view_entry',
  41. ],
  42. /**
  43. * Menu triggers.
  44. */
  45. 'menu_triggers' => [
  46. 'trigger_profile_view_submenu',
  47. 'trigger_profile_view_actions',
  48. 'trigger_group_view_submenu',
  49. 'trigger_group_view_actions'
  50. ],
  51. /**
  52. * Storage objects to automatically delete files from upon module uninstallation.
  53. * Note. Don't add storage objects used in transcoder objects.
  54. */
  55. 'storages' => [
  56. 'bx_resources_covers',
  57. ],
  58. /**
  59. * Transcoders.
  60. */
  61. 'transcoders' => [
  62. 'bx_resources_preview',
  63. 'bx_resources_miniature',
  64. 'bx_resources_gallery',
  65. 'bx_resources_cover',
  66. ],
  67. /**
  68. * Extended Search Forms.
  69. */
  70. 'esearches' => [
  71. 'bx_resources',
  72. 'bx_resources_cmts'
  73. ],
  74. /**
  75. * Installation/Uninstallation Section.
  76. */
  77. 'install' => [
  78. 'execute_sql' => 1,
  79. 'update_languages' => 1,
  80. 'clear_db_cache' => 1,
  81. ],
  82. 'uninstall' => [
  83. 'process_esearches' => 1,
  84. 'execute_sql' => 1,
  85. 'update_languages' => 1,
  86. 'update_relations' => 1,
  87. 'clear_db_cache' => 1,
  88. ],
  89. 'enable' => [
  90. 'execute_sql' => 1,
  91. 'update_relations' => 1,
  92. 'clear_db_cache' => 1,
  93. ],
  94. 'enable_success' => [
  95. 'process_menu_triggers' => 1,
  96. 'process_page_triggers' => 1,
  97. 'process_esearches' => 1,
  98. 'register_transcoders' => 1,
  99. 'clear_db_cache' => 1,
  100. ],
  101. 'disable' => [
  102. 'execute_sql' => 1,
  103. 'update_relations' => 1,
  104. 'unregister_transcoders' => 1,
  105. 'clear_db_cache' => 1,
  106. ],
  107. 'disable_failed' => [
  108. 'register_transcoders' => 1,
  109. 'clear_db_cache' => 1,
  110. ],
  111. /**
  112. * Dependencies Section
  113. */
  114. 'dependencies' => [],
  115. /**
  116. * Relations Section
  117. */
  118. 'relations' => [
  119. 'bx_timeline',
  120. 'bx_notifications'
  121. ]
  122. ];
  123. /** @} */