config.php 3.0 KB

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