<?php
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
-
-OCP\App::addNavigationEntry(
+\OC::$server->getNavigationManager()->add(
array(
'id' => 'grauphel',
'order' => 2342,
- 'href' => OCP\Util::linkTo('grauphel', 'index.php'),
- 'icon' => OCP\Util::imagePath('grauphel', 'notes.png'),
+ 'href' => \OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index'),
+ 'icon' => \OC::$server->getURLGenerator()->imagePath('grauphel', 'app.svg'),
'name' => 'Tomboy notes'
)
);
+
+\OC::$server->getSearch()->registerProvider(
+ 'OCA\Grauphel\Search\Provider', array('apps' => array('grauphel'))
+);
+
+\OCP\Util::addscript('grauphel', 'loader');
?>