mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
[example] adding mailing heading
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@73 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
dc2dc419a2
commit
396028a4af
13
hook.php
13
hook.php
@ -555,6 +555,11 @@ function plugin_get_headings_example($type,$ID,$withtemplate){
|
|||||||
1 => "Test PLugin",
|
1 => "Test PLugin",
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case "mailing":
|
||||||
|
return array(
|
||||||
|
1 => "Test PLugin",
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -588,6 +593,11 @@ function plugin_headings_actions_example($type){
|
|||||||
1 => "plugin_headings_example",
|
1 => "plugin_headings_example",
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case "mailing" :
|
||||||
|
return array(
|
||||||
|
1 => "plugin_headings_example",
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -622,6 +632,9 @@ function plugin_headings_example($type,$ID,$withtemplate=0){
|
|||||||
echo "</table>";
|
echo "</table>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
break;
|
break;
|
||||||
|
case "mailing":
|
||||||
|
echo "Plugin mailing action ".$LANG['plugin_example']["test"];
|
||||||
|
break;
|
||||||
default :
|
default :
|
||||||
echo "Plugin function with headings TYPE=".$type." ID=".$ID;
|
echo "Plugin function with headings TYPE=".$type." ID=".$ID;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user