clean itemtype definition

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@123 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2009-12-16 15:51:01 +00:00
parent cc15e45076
commit d5a3035632

View File

@ -40,17 +40,12 @@ function plugin_init_example() {
// Params : plugin name - string type - ID - Array of attributes // Params : plugin name - string type - ID - Array of attributes
Plugin::registerClass('PluginExampleExample', Plugin::registerClass('PluginExampleExample',
array('classname' => 'PluginExampleExample', array('classname' => 'PluginExampleExample',
'formpage' => 'front/example.form.php', ));
'deleted_tables' => false,
'template_tables' => false,
'specif_entities_tables' => false,
'recursive_type' => false));
// 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', array('classname' => 'PluginExampleDropdown',
'typename' => 'Example Dropdown Type', 'typename' => 'Example Dropdown Type'));
'formpage' => 'front/dropdown.form.php'));
// 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