2011-08-06 20:32:06 +00:00
|
|
|
<?php
|
2011-12-05 20:51:25 +00:00
|
|
|
OC::$CLASSPATH['OC_Contacts_App'] = 'apps/contacts/lib/app.php';
|
2011-08-06 20:32:06 +00:00
|
|
|
OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'apps/contacts/lib/addressbook.php';
|
2011-09-16 22:26:57 +00:00
|
|
|
OC::$CLASSPATH['OC_Contacts_VCard'] = 'apps/contacts/lib/vcard.php';
|
2011-08-10 12:28:14 +00:00
|
|
|
OC::$CLASSPATH['OC_Contacts_Hooks'] = 'apps/contacts/lib/hooks.php';
|
2011-08-06 20:32:06 +00:00
|
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV'] = 'apps/contacts/lib/connector_sabre.php';
|
2012-03-01 21:58:44 +00:00
|
|
|
OC::$CLASSPATH['OC_Search_Provider_Contacts'] = 'apps/contacts/lib/search.php';
|
2012-01-26 18:05:46 +00:00
|
|
|
OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Contacts_Hooks', 'deleteUser');
|
2012-03-01 19:51:59 +00:00
|
|
|
OC_HOOK::connect('OC_Calendar', 'getEvents', 'OC_Contacts_Hooks', 'getBirthdayEvents');
|
|
|
|
OC_HOOK::connect('OC_Calendar', 'getSources', 'OC_Contacts_Hooks', 'getCalenderSources');
|
2011-08-06 20:32:06 +00:00
|
|
|
|
2012-05-01 22:50:26 +00:00
|
|
|
OCP\App::register( array(
|
2011-08-06 20:32:06 +00:00
|
|
|
'order' => 10,
|
|
|
|
'id' => 'contacts',
|
|
|
|
'name' => 'Contacts' ));
|
|
|
|
|
2012-05-01 22:50:26 +00:00
|
|
|
OCP\App::addNavigationEntry( array(
|
2011-08-06 20:32:06 +00:00
|
|
|
'id' => 'contacts_index',
|
|
|
|
'order' => 10,
|
2012-05-01 21:19:39 +00:00
|
|
|
'href' => OCP\Util::linkTo( 'contacts', 'index.php' ),
|
2012-05-01 22:20:45 +00:00
|
|
|
'icon' => OCP\Util::imagePath( 'settings', 'users.svg' ),
|
2012-04-14 16:34:59 +00:00
|
|
|
'name' => OC_L10N::get('contact')->t('Contacts') ));
|
2011-09-28 14:05:01 +00:00
|
|
|
|
|
|
|
|
2012-05-01 22:50:26 +00:00
|
|
|
OCP\App::registerPersonal('contacts','settings');
|
2012-05-01 18:03:41 +00:00
|
|
|
OCP\Util::addscript('contacts', 'loader');
|
2012-03-01 21:58:44 +00:00
|
|
|
OC_Search::registerProvider('OC_Search_Provider_Contacts');
|