clean + fix table name

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@116 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
remicollet
2009-12-12 18:51:33 +00:00
parent d5d2a93dc7
commit c16272abf4
4 changed files with 19 additions and 24 deletions

View File

@ -40,10 +40,7 @@ function plugin_init_example() {
// Params : plugin name - string type - ID - Array of attributes
Plugin::registerClass('PluginExampleExample', array(
'classname' => 'PluginExampleExample',
'tablename' => 'glpi_plugin_example_example',
'formpage' => 'front/example.form.php',
'searchpage' => 'front/example.php',
'typename' => 'Example Type',
'deleted_tables' => false,
'template_tables' => false,
'specif_entities_tables' => false,
@ -55,10 +52,8 @@ function plugin_init_example() {
// Params : plugin name - string type - ID - Array of attributes
Plugin::registerClass('PluginExampleDropdown', array(
'classname' => 'PluginExampleDropdown',
'tablename' => 'glpi_plugin_example_dropdown',
'typename' => 'Example Dropdown Type',
'formpage' => 'front/dropdown.form.php',
'searchpage' => 'front/dropdown.php'));
'formpage' => 'front/dropdown.form.php'));
// Display a menu entry ?
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook