make hooks nicer

This commit is contained in:
Cornelius Weiß 2005-02-25 11:35:51 +00:00
parent 8f5ccbd557
commit 3bc277e39c
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* eGroupWare - resources Admin-, Preferences- and SideboxMenu-Hooks * * eGroupWare - resources hooks *
* http://www.eGroupWare.org * * http://www.eGroupWare.org *
* Originally written by Ralf Becker <RalfBecker@outdoor-training.de> * * Originally written by Ralf Becker <RalfBecker@outdoor-training.de> *
* Changes for resources by Cornelius Weiß <egw@von-und-zu-weiss.de> * * Changes for resources by Cornelius Weiß <egw@von-und-zu-weiss.de> *
@ -14,9 +14,9 @@
/* $Id$ */ /* $Id$ */
class admin_prefs_sidebox_hooks class resources_hooks
{ {
function all_hooks($args) function admin_prefs_sidebox($args)
{ {
$appname = 'resources'; $appname = 'resources';
$location = is_array($args) ? $args['location'] : $args; $location = is_array($args) ? $args['location'] : $args;

View File

@ -29,10 +29,10 @@
'email' => 'egw@von-und-zu-weiss.de' 'email' => 'egw@von-und-zu-weiss.de'
); );
$setup_info['resources']['hooks']['preferences'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; $setup_info['resources']['hooks']['preferences'] = 'resources.resources_hooks.admin_prefs_sidebox';
$setup_info['resources']['hooks']['admin'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; $setup_info['resources']['hooks']['admin'] = 'resources.resources_hooks.admin_prefs_sidebox';
$setup_info['resources']['hooks']['sidebox_menu'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; $setup_info['resources']['hooks']['sidebox_menu'] = 'resources.resources_hooks.admin_prefs_sidebox';
$setup_info['resources']['hooks']['search_link'] = 'resources.admin_prefs_sidebox_hooks.search_link'; $setup_info['resources']['hooks']['search_link'] = 'resources.resources_hooks.search_link';
// $setup_info['resources']['hooks'][] = 'home'; // $setup_info['resources']['hooks'][] = 'home';
// $setup_info['resources']['hooks'][] = 'settings'; // $setup_info['resources']['hooks'][] = 'settings';