Add notification support example

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@130 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
wawax 2010-01-28 11:19:10 +00:00
parent af4398aece
commit ca1c86bc04

View File

@ -44,9 +44,10 @@ function plugin_init_example() {
// ));
// Params : plugin name - string type - ID - Array of attributes
Plugin::registerClass('PluginExampleDropdown',
array('classname' => 'PluginExampleDropdown',
'typename' => 'Example Dropdown Type'));
Plugin::registerClass('PluginExampleDropdown');
Plugin::registerClass('PluginExampleExample',
array('notificationtemplates_types' => true));
// Display a menu entry ?
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook