Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,26 @@
\OCP\Util::addStyle('customgroups', 'icon');
}
}

\OC::$server->getNavigationManager()->add(function () {
$urlGenerator = \OC::$server->getURLGenerator();
return [
// the string under which your app will be referenced in owncloud
'id' => 'customgroups',

// sorting weight for the navigation. The higher the number, the higher
// will it be listed in the navigation
'order' => 90,

// the route that will be shown on startup
'href' => $urlGenerator->linkToRoute('settings.SettingsPage.getPersonal', ['sectionid' => 'customgroups']),

// the icon that will be shown in the navigation
// this file needs to exist in img/
'icon' => $urlGenerator->imagePath('customgroups', 'app.svg'),

// the title of your application. This will be used in the
// navigation or on the settings page of your app
'name' => \OC::$server->getL10N('customgroups')->t('Groups'),
];
});