<?php

/**
 * Connected Communities Initiative
 * Copyright (C) 2016 Queensland University of Technology
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
return ['id' => 'anon_accounts', 'class' => 'humhub\\modules\\anon_accounts\\Module', 'namespace' => 'humhub\\modules\\anon_accounts', 'events' => [['class' => humhub\modules\admin\widgets\AdminMenu::className(), 'event' => humhub\modules\admin\widgets\AdminMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\anon_accounts\\Events', 'onAdminMenuInit']]]];
<?php

use humhub\commands\IntegrityController;
return ['id' => 'reportcontent', 'class' => 'humhub\\modules\\reportcontent\\Module', 'namespace' => 'humhub\\modules\\reportcontent', 'events' => [['class' => humhub\modules\content\widgets\WallEntryControls::className(), 'event' => humhub\modules\content\widgets\WallEntryControls::EVENT_INIT, 'callback' => ['humhub\\modules\\reportcontent\\Events', 'onWallEntryControlsInit']], ['class' => humhub\modules\content\components\ContentActiveRecord::className(), 'event' => \humhub\modules\content\components\ContentActiveRecord::EVENT_BEFORE_DELETE, 'callback' => ['humhub\\modules\\reportcontent\\Events', 'onContentDelete']], ['class' => humhub\modules\admin\widgets\AdminMenu::className(), 'event' => humhub\modules\admin\widgets\AdminMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\reportcontent\\Events', 'onAdminMenuInit']], ['class' => humhub\modules\space\widgets\AdminMenu::className(), 'event' => humhub\modules\space\widgets\AdminMenu::EVENT_INIT, 'callback' => ['humhub\\modules\\reportcontent\\Events', 'onSpaceAdminMenuInit']], ['class' => IntegrityController::className(), 'event' => IntegrityController::EVENT_ON_RUN, 'callback' => array('humhub\\modules\\reportcontent\\Events', 'onIntegrityCheck')]]];
Ejemplo n.º 3
0
<?php

use app\stripe\Module;
use app\stripe\Models\Stripe;
return ['id' => 'stripe', 'class' => 'app\\modules\\stripe\\Module', 'namespace' => 'app\\modules\\stripe\\Module', 'events' => array(array('class' => humhub\modules\admin\widgets\AdminMenu::className(), 'event' => humhub\modules\admin\widgets\AdminMenu::EVENT_INIT, 'callback' => array('app\\modules\\stripe\\Module', 'onAdminMenuInit')), array('class' => humhub\modules\user\widgets\AccountMenu::className(), 'event' => humhub\modules\user\widgets\AccountMenu::EVENT_INIT, 'callback' => array('app\\modules\\stripe\\Module', 'onUserMenuInit')))];