[0.85] update for new menu management

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@214 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo
2013-02-19 11:48:41 +00:00
parent bbbfa5812a
commit 07f631f8b3
3 changed files with 37 additions and 10 deletions

View File

@ -61,6 +61,29 @@ class PluginExampleExample extends CommonDBTM {
}
/**
* @see CommonGLPI::getMenuName()
**/
static function getMenuName() {
return __('Example plugin');
}
/**
* @see CommonGLPI::getAdditionalMenuLinks()
**/
static function getAdditionalMenuLinks() {
global $CFG_GLPI;
$links = array();
$links['config'] = '/plugins/example/index.php';
$links["<img src='".$CFG_GLPI["root_doc"]."/pics/menu_showall.png' title='".__s('Show all')."' alt='".__s('Show all')."'>"] = '/plugins/example/index.php';
$links[__s('Test link', 'example')] = '/plugins/example/index.php';
return $links;
}
function getSearchOptions() {
$tab = array();