installer.php 689 B

123456789101112131415161718192021222324252627
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Reviews Reviews
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxReviewsInstaller extends BxBaseModTextInstaller
  12. {
  13. function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. protected function actionPresetContextChooserOptions($sOperation)
  18. {
  19. $aOptions = bx_srv('bx_reviews', 'get_context_modules_options', []);
  20. setParam('bx_reviews_custom_context_chooser_options', implode(',', array_keys($aOptions)));
  21. return BX_DOL_STUDIO_INSTALLER_SUCCESS;
  22. }
  23. }
  24. /** @} */