-
Notifications
You must be signed in to change notification settings - Fork 2
/
autostart.php
executable file
·24 lines (24 loc) · 1.3 KB
/
autostart.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
* Autostart actions for this module
* @author Anton Kurnitzky
*/
Yii::app()->moduleManager->register(array(
'id' => 'favorite',
'class' => 'application.modules.favorite.FavoriteModule',
'import' => array(
'application.modules.favorite.*',
'application.modules.favorite.behaviors.*',
'application.modules.favorite.models.*',
),
'events' => array(
array('class' => 'User', 'event' => 'onBeforeDelete', 'callback' => array('FavoriteModule', 'onUserDelete')),
array('class' => 'HActiveRecordContent', 'event' => 'onBeforeDelete', 'callback' => array('FavoriteModule', 'onContentDelete')),
array('class' => 'HActiveRecordContentAddon', 'event' => 'onBeforeDelete', 'callback' => array('FavoriteModule', 'onContentAddonDelete')),
array('class' => 'IntegrityChecker', 'event' => 'onRun', 'callback' => array('FavoriteModule', 'onIntegrityCheck')),
array('class' => 'WallEntryLinksWidget', 'event' => 'onInit', 'callback' => array('FavoriteModule', 'onWallEntryLinksInit')),
array('class' => 'WallEntryAddonWidget', 'event' => 'onInit', 'callback' => array('FavoriteModule', 'onWallEntryAddonInit')),
array('class' => 'SpaceMenuWidget', 'event' => 'onInit', 'callback' => array('FavoriteModule', 'onSpaceMenuInit')),
),
));
?>