-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathautostart.php
executable file
·20 lines (19 loc) · 1.2 KB
/
autostart.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
Yii::app()->moduleManager->register(array(
'id' => 'calendarplus',
'class' => 'application.modules.calendarplus.CalendarPlusModule',
'import' => array(
'application.modules.calendarplus.*',
'application.modules.calendarplus.models.*',
'application.modules.calendarplus.notifications.*',
),
'events' => array(
array('class' => 'SpaceMenuWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onSpaceMenuInit')),
array('class' => 'ProfileMenuWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onProfileMenuInit')),
array('class' => 'SpaceSidebarWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onSpaceSidebarInit')),
array('class' => 'ProfileSidebarWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onProfileSidebarInit')),
array('class' => 'DashboardSidebarWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onDashboardSidebarInit')),
array('class' => 'TopMenuWidget', 'event' => 'onInit', 'callback' => array('CalendarPlusModuleEvents', 'onTopMenuInit')),
),
));
?>