1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-10 21:24:33 +01:00
OwncloudContactsOfficial/appinfo/app.php

28 lines
1.2 KiB
PHP
Raw Normal View History

2011-08-06 22:32:06 +02:00
<?php
OC::$CLASSPATH['OC_Contacts_App'] = 'apps/contacts/lib/app.php';
2011-08-06 22:32:06 +02:00
OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'apps/contacts/lib/addressbook.php';
OC::$CLASSPATH['OC_Contacts_VCard'] = 'apps/contacts/lib/vcard.php';
2011-08-10 14:28:14 +02:00
OC::$CLASSPATH['OC_Contacts_Hooks'] = 'apps/contacts/lib/hooks.php';
2011-08-06 22:32:06 +02:00
OC::$CLASSPATH['OC_Connector_Sabre_CardDAV'] = 'apps/contacts/lib/connector_sabre.php';
OC::$CLASSPATH['OC_Search_Provider_Contacts'] = 'apps/contacts/lib/search.php';
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');
2011-08-06 22:32:06 +02:00
2012-05-02 00:50:26 +02:00
OCP\App::register( array(
2011-08-06 22:32:06 +02:00
'order' => 10,
'id' => 'contacts',
'name' => 'Contacts' ));
2012-05-02 00:50:26 +02:00
OCP\App::addNavigationEntry( array(
2011-08-06 22:32:06 +02:00
'id' => 'contacts_index',
'order' => 10,
2012-05-01 23:19:39 +02:00
'href' => OCP\Util::linkTo( 'contacts', 'index.php' ),
2012-05-02 00:20:45 +02:00
'icon' => OCP\Util::imagePath( 'settings', 'users.svg' ),
2012-05-15 18:48:48 +02:00
'name' => OC_L10N::get('contacts')->t('Contacts') ));
2012-05-02 00:50:26 +02:00
OCP\App::registerPersonal('contacts','settings');
2012-05-01 20:03:41 +02:00
OCP\Util::addscript('contacts', 'loader');
OC_Search::registerProvider('OC_Search_Provider_Contacts');