Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(ui): move the Flyve MDM menu to the administration menu
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 26, 2017
1 parent 1afea60 commit 57d390d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ function plugin_init_flyvemdm() {

//if glpi is loaded
if (Session::getLoginUserID()) {
$PLUGIN_HOOKS['menu']["flyvemdm"] = true;
$PLUGIN_HOOKS['menu']['flyvemdm'] = true;
}
$PLUGIN_HOOKS['post_init']["flyvemdm"] = 'plugin_flyvemdm_postinit';
$PLUGIN_HOOKS['post_init']['flyvemdm'] = 'plugin_flyvemdm_postinit';

// Notifications
$PLUGIN_HOOKS['item_get_events']['flyvemdm'] = [];
Expand All @@ -126,10 +126,10 @@ function plugin_init_flyvemdm() {

if (Session::haveRight(PluginFlyvemdmProfile::$rightname, PluginFlyvemdmProfile::RIGHT_FLYVEMDM_USE)) {
// Define menu entries
$PLUGIN_HOOKS['menu_toadd']["flyvemdm"] = array(
'plugins' => 'PluginFlyvemdmMenu',
$PLUGIN_HOOKS['menu_toadd']['flyvemdm'] = array(
'admin' => 'PluginFlyvemdmMenu',
);
$PLUGIN_HOOKS['config_page']["flyvemdm"] = 'front/config.form.php';
$PLUGIN_HOOKS['config_page']['flyvemdm'] = 'front/config.form.php';
}

// Hooks for the plugin : objects inherited from GLPI or
Expand Down

0 comments on commit 57d390d

Please sign in to comment.