mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
Create a Camera device (regarding revision 22194 of the GLPI core)
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@219 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -56,6 +56,9 @@ function plugin_init_example() {
|
||||
Plugin::registerClass('PluginExampleRuleTestCollection',
|
||||
array('rulecollections_types' => true));
|
||||
|
||||
Plugin::registerClass('PluginExampleDeviceCamera',
|
||||
array('device_types' => true));
|
||||
|
||||
// Display a menu entry ?
|
||||
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook
|
||||
$PLUGIN_HOOKS['menu_toadd']['example'] = array('plugins' => 'PluginExampleExample',
|
||||
|
Reference in New Issue
Block a user