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