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:
webmyster
2013-11-25 19:01:42 +00:00
parent 76d6268bf1
commit 19e72b8bab
6 changed files with 223 additions and 1 deletions

View File

@ -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',