From c13d3089d3097caee89bd7bdc22e9e998209aeeb Mon Sep 17 00:00:00 2001 From: remicollet Date: Wed, 2 Dec 2009 18:37:21 +0000 Subject: [PATCH] add getTypeName git-svn-id: https://forge.glpi-project.org/svn/example/trunk@104 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hook.php b/hook.php index 6c59e6f..0303a51 100644 --- a/hook.php +++ b/hook.php @@ -40,6 +40,13 @@ class pluginExample extends CommonDBTM { $this->type=PLUGIN_EXAMPLE_TYPE; } + // Should return the localized name of the type + static function getTypeName() { + global $LANG; + + return 'Example Type'; + } + function getSearchOptions() { global $LANG;