mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
make hooks nicer
This commit is contained in:
parent
8f5ccbd557
commit
3bc277e39c
@ -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;
|
@ -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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user