<?php use humhub\widgets\TopMenuRightStack; use humhub\modules\search\Events; use humhub\components\console\Application; use humhub\commands\CronController; return ['isCoreModule' => true, 'id' => 'search', 'class' => \humhub\modules\search\Module::className(), 'events' => array(['class' => TopMenuRightStack::className(), 'event' => TopMenuRightStack::EVENT_INIT, 'callback' => array(Events::className(), 'onTopMenuRightInit')], ['class' => Application::className(), 'event' => Application::EVENT_ON_INIT, 'callback' => array(Events::className(), 'onConsoleApplicationInit')], ['class' => CronController::className(), 'event' => CronController::EVENT_ON_HOURLY_RUN, 'callback' => [Events::className(), 'onHourlyCron']]), 'urlManagerRules' => ['search' => 'search/search/index']];
<?php use humhub\modules\search\engine\Search; use humhub\modules\user\models\User; use humhub\modules\space\Events; use humhub\components\console\Application; use humhub\commands\IntegrityController; return ['id' => 'space', 'class' => \humhub\modules\space\Module::className(), 'isCoreModule' => true, 'urlManagerRules' => [['class' => 'humhub\\modules\\space\\components\\UrlRule']], 'events' => array(array('class' => User::className(), 'event' => User::EVENT_BEFORE_DELETE, 'callback' => array(Events::className(), 'onUserDelete')), array('class' => Search::className(), 'event' => Search::EVENT_ON_REBUILD, 'callback' => array(Events::className(), 'onSearchRebuild')), array('class' => Application::className(), 'event' => Application::EVENT_ON_INIT, 'callback' => array(Events::className(), 'onConsoleApplicationInit')), array('class' => IntegrityController::className(), 'event' => IntegrityController::EVENT_ON_RUN, 'callback' => array(Events::className(), 'onIntegrityCheck')))];
<?php use humhub\widgets\TopMenu; use humhub\components\console\Application; return ['id' => 'translation', 'class' => 'humhub\\modules\\translation\\Module', 'namespace' => 'humhub\\modules\\translation', 'events' => array(array('class' => TopMenu::className(), 'event' => TopMenu::EVENT_INIT, 'callback' => array('humhub\\modules\\translation\\Module', 'onTopMenuInit')), array('class' => Application::className(), 'event' => Application::EVENT_ON_INIT, 'callback' => array('humhub\\modules\\translation\\Module', 'onConsoleApplicationInit')))];
<?php use humhub\modules\dashboard\widgets\Sidebar; use humhub\modules\admin\Events; use humhub\commands\CronController; use humhub\components\console\Application; return ['id' => 'admin', 'class' => \humhub\modules\admin\Module::className(), 'isCoreModule' => true, 'events' => array(['class' => Sidebar::className(), 'event' => Sidebar::EVENT_INIT, 'callback' => array(Events::className(), 'onDashboardSidebarInit')], ['class' => CronController::className(), 'event' => CronController::EVENT_ON_DAILY_RUN, 'callback' => array(Events::className(), 'onCronDailyRun')], ['class' => Application::className(), 'event' => Application::EVENT_ON_INIT, 'callback' => array(Events::className(), 'onConsoleApplicationInit')])];