Blame view

sources/apps/contacts/appinfo/app.php 621 Bytes
03e52840d   Kload   Init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  require_once __DIR__ . '/bootstrap.php';
  
  OCP\App::addNavigationEntry( array(
    'id' => 'contacts_index',
    'order' => 10,
    'href' => OCP\Util::linkTo( 'contacts', 'index.php' ),
    'icon' => OCP\Util::imagePath( 'contacts', 'contacts.svg' ),
    'name' => OC_L10N::get('contacts')->t('Contacts') ));
  
  OCP\Util::addscript('contacts', 'loader');
  
  OC_Search::registerProvider('OCA\Contacts\SearchProvider');
  
  if(OCP\User::isLoggedIn()) {
  	foreach(OCA\Contacts\Addressbook::all(OCP\USER::getUser()) as $addressbook)  {
  		OCP\Contacts::registerAddressBook(new OCA\Contacts\AddressbookProvider($addressbook['id']));
  	}
  }