mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
add getTypeName
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@104 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
d263456104
commit
c13d3089d3
7
hook.php
7
hook.php
@ -40,6 +40,13 @@ class pluginExample extends CommonDBTM {
|
|||||||
$this->type=PLUGIN_EXAMPLE_TYPE;
|
$this->type=PLUGIN_EXAMPLE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Should return the localized name of the type
|
||||||
|
static function getTypeName() {
|
||||||
|
global $LANG;
|
||||||
|
|
||||||
|
return 'Example Type';
|
||||||
|
}
|
||||||
|
|
||||||
function getSearchOptions() {
|
function getSearchOptions() {
|
||||||
global $LANG;
|
global $LANG;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user