mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-30 12:24:11 +01:00
31 lines
1.9 KiB
PHP
31 lines
1.9 KiB
PHP
<?php
|
|
OC::$CLASSPATH['OC_Contacts_App'] = 'contacts/lib/app.php';
|
|
OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'contacts/lib/addressbook.php';
|
|
OC::$CLASSPATH['OC_Contacts_VCard'] = 'contacts/lib/vcard.php';
|
|
OC::$CLASSPATH['OC_Contacts_Hooks'] = 'contacts/lib/hooks.php';
|
|
OC::$CLASSPATH['OC_Share_Backend_Contact'] = 'contacts/lib/share/contact.php';
|
|
OC::$CLASSPATH['OC_Share_Backend_Addressbook'] = 'contacts/lib/share/addressbook.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV'] = 'contacts/lib/sabre/backend.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV_AddressBookRoot'] = 'contacts/lib/sabre/addressbookroot.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV_UserAddressBooks'] = 'contacts/lib/sabre/useraddressbooks.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV_AddressBook'] = 'contacts/lib/sabre/addressbook.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV_Card'] = 'contacts/lib/sabre/card.php';
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV_VCFExportPlugin'] = 'contacts/lib/sabre/vcfexportplugin.php';
|
|
OC::$CLASSPATH['OC_Search_Provider_Contacts'] = 'contacts/lib/search.php';
|
|
OCP\Util::connectHook('OC_User', 'post_createUser', 'OC_Contacts_Hooks', 'createUser');
|
|
OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Contacts_Hooks', 'deleteUser');
|
|
OCP\Util::connectHook('OC_Calendar', 'getEvents', 'OC_Contacts_Hooks', 'getBirthdayEvents');
|
|
OCP\Util::connectHook('OC_Calendar', 'getSources', 'OC_Contacts_Hooks', 'getCalenderSources');
|
|
|
|
OCP\App::addNavigationEntry( array(
|
|
'id' => 'contacts_index',
|
|
'order' => 10,
|
|
'href' => OCP\Util::linkTo( 'contacts', 'index.php' ),
|
|
'icon' => OCP\Util::imagePath( 'settings', 'users.svg' ),
|
|
'name' => OC_L10N::get('contacts')->t('Contacts') ));
|
|
|
|
OCP\Util::addscript('contacts', 'loader');
|
|
OC_Search::registerProvider('OC_Search_Provider_Contacts');
|
|
OCP\Share::registerBackend('contact', 'OC_Share_Backend_Contact');
|
|
OCP\Share::registerBackend('addressbook', 'OC_Share_Backend_Addressbook', 'contact');
|