move index.php to front/example.php

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@109 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
remicollet
2009-12-07 12:09:49 +00:00
parent 3b5913f295
commit d9c913419d
3 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@ function plugin_init_example() {
'classname' => 'PluginExampleExample',
'tablename' => 'glpi_plugin_example_example',
'formpage' => 'front/example.form.php',
'searchpage' => 'index.php',
'searchpage' => 'front/example.php',
'typename' => 'Example Type',
'deleted_tables' => false,
'template_tables' => false,
@ -62,12 +62,12 @@ function plugin_init_example() {
// Display a menu entry ?
if (plugin_example_haveTypeRight('PluginExampleExample','r')) { // Right set in change_profile hook
$PLUGIN_HOOKS['menu_entry']['example'] = true;
$PLUGIN_HOOKS['menu_entry']['example'] = 'front/example.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['title']="Search";
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['page']='index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['search']='/plugins/example/index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['add'] = '/plugins/example/example.form.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['page']='/plugins/example/front/example.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['search']='/plugins/example/front/example.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['add'] = '/plugins/example/front/example.form.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['config'] = '/plugins/example/index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']["<img src='".$CFG_GLPI["root_doc"]."/pics/menu_showall.png' title='".$LANG['plugin_example']["test"]."' alt='".$LANG['plugin_example']["test"]."'>"] = '/plugins/example/index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links'][$LANG['plugin_example']["test"]] = '/plugins/example/index.php';