mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
[example] add test for create mode + add tab on COMPUTERDISK
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@78 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
fe8f065528
commit
35060ead05
12
hook.php
12
hook.php
@ -541,11 +541,14 @@ function plugin_get_headings_example($type,$ID,$withtemplate){
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case COMPUTERDISK_TYPE :
|
||||||
case ENTERPRISE_TYPE :
|
case ENTERPRISE_TYPE :
|
||||||
return array(
|
if ($ID>0) { // Not in create mode
|
||||||
1 => "Test PLugin",
|
return array(
|
||||||
2 => "Test PLugin 2",
|
1 => "Test PLugin",
|
||||||
);
|
2 => "Test PLugin 2",
|
||||||
|
);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "central":
|
case "central":
|
||||||
return array(
|
return array(
|
||||||
@ -578,6 +581,7 @@ function plugin_headings_actions_example($type){
|
|||||||
);
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case COMPUTERDISK_TYPE :
|
||||||
case ENTERPRISE_TYPE :
|
case ENTERPRISE_TYPE :
|
||||||
return array(
|
return array(
|
||||||
1 => "plugin_headings_example",
|
1 => "plugin_headings_example",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user