2011-08-11 13:22:07 +04:00
|
|
|
<?php
|
2012-04-14 18:44:15 +04:00
|
|
|
$l=OC_L10N::get('calendar');
|
2012-03-03 17:30:52 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_App'] = 'apps/calendar/lib/app.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
|
|
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
|
2012-03-03 18:06:51 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
|
2012-03-03 17:30:52 +04:00
|
|
|
OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php';
|
|
|
|
OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
|
|
|
|
OC_Util::addScript('calendar','loader');
|
2012-04-14 05:29:51 +04:00
|
|
|
OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
|
2012-05-01 11:49:22 +04:00
|
|
|
OCP\Util::addStyle("3rdparty", "chosen/chosen");
|
2012-03-03 17:30:52 +04:00
|
|
|
OC_App::register( array(
|
|
|
|
'order' => 10,
|
|
|
|
'id' => 'calendar',
|
|
|
|
'name' => 'Calendar' ));
|
|
|
|
OC_App::addNavigationEntry( array(
|
|
|
|
'id' => 'calendar_index',
|
|
|
|
'order' => 10,
|
|
|
|
'href' => OC_Helper::linkTo( 'calendar', 'index.php' ),
|
|
|
|
'icon' => OC_Helper::imagePath( 'calendar', 'icon.svg' ),
|
|
|
|
'name' => $l->t('Calendar')));
|
|
|
|
OC_App::registerPersonal('calendar', 'settings');
|
2012-05-01 11:49:22 +04:00
|
|
|
OC_Search::registerProvider('OC_Search_Provider_Calendar');
|