diff --git a/resources/inc/class.admin_prefs_sidebox_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php similarity index 95% rename from resources/inc/class.admin_prefs_sidebox_hooks.inc.php rename to resources/inc/class.resources_hooks.inc.php index d375c50922..b04069fd6d 100644 --- a/resources/inc/class.admin_prefs_sidebox_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -1,6 +1,6 @@ * * Changes for resources by Cornelius Weiß * @@ -14,9 +14,9 @@ /* $Id$ */ -class admin_prefs_sidebox_hooks +class resources_hooks { - function all_hooks($args) + function admin_prefs_sidebox($args) { $appname = 'resources'; $location = is_array($args) ? $args['location'] : $args; diff --git a/resources/setup/setup.inc.php b/resources/setup/setup.inc.php index f2a7c9101d..6d6d80ef49 100755 --- a/resources/setup/setup.inc.php +++ b/resources/setup/setup.inc.php @@ -29,10 +29,10 @@ 'email' => 'egw@von-und-zu-weiss.de' ); - $setup_info['resources']['hooks']['preferences'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['resources']['hooks']['admin'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['resources']['hooks']['sidebox_menu'] = 'resources.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['resources']['hooks']['search_link'] = 'resources.admin_prefs_sidebox_hooks.search_link'; + $setup_info['resources']['hooks']['preferences'] = 'resources.resources_hooks.admin_prefs_sidebox'; + $setup_info['resources']['hooks']['admin'] = 'resources.resources_hooks.admin_prefs_sidebox'; + $setup_info['resources']['hooks']['sidebox_menu'] = 'resources.resources_hooks.admin_prefs_sidebox'; + $setup_info['resources']['hooks']['search_link'] = 'resources.resources_hooks.search_link'; // $setup_info['resources']['hooks'][] = 'home'; // $setup_info['resources']['hooks'][] = 'settings';