mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
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:
parent
af4398aece
commit
ca1c86bc04
@ -44,9 +44,10 @@ function plugin_init_example() {
|
|||||||
// ));
|
// ));
|
||||||
|
|
||||||
// Params : plugin name - string type - ID - Array of attributes
|
// Params : plugin name - string type - ID - Array of attributes
|
||||||
Plugin::registerClass('PluginExampleDropdown',
|
Plugin::registerClass('PluginExampleDropdown');
|
||||||
array('classname' => 'PluginExampleDropdown',
|
|
||||||
'typename' => 'Example Dropdown Type'));
|
Plugin::registerClass('PluginExampleExample',
|
||||||
|
array('notificationtemplates_types' => true));
|
||||||
|
|
||||||
// Display a menu entry ?
|
// Display a menu entry ?
|
||||||
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook
|
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user