[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:
remicollet 2009-05-14 06:58:37 +00:00
parent fe8f065528
commit 35060ead05

View File

@ -541,11 +541,14 @@ function plugin_get_headings_example($type,$ID,$withtemplate){
);
}
break;
case COMPUTERDISK_TYPE :
case ENTERPRISE_TYPE :
return array(
1 => "Test PLugin",
2 => "Test PLugin 2",
);
if ($ID>0) { // Not in create mode
return array(
1 => "Test PLugin",
2 => "Test PLugin 2",
);
}
break;
case "central":
return array(
@ -578,6 +581,7 @@ function plugin_headings_actions_example($type){
);
break;
case COMPUTERDISK_TYPE :
case ENTERPRISE_TYPE :
return array(
1 => "plugin_headings_example",