From 2bec937130df66fc48a7930a42247da41138e7bf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 11 May 2013 08:51:06 +0000 Subject: [PATCH] re-added "Preferences" link to Admin >> Edit user --- preferences/inc/class.preferences_hooks.inc.php | 14 ++++++++++++++ preferences/setup/setup.inc.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index b05d5be4c4..64c4ae160f 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -467,4 +467,18 @@ class preferences_hooks $GLOBALS['egw']->preferences->delete_group($account_id); } } + + /** + * Preferences link to Admin >> Edit user + */ + public static function edit_user() + { + global $menuData; + + $menuData[] = array( + 'description' => 'Preferences', + 'url' => '/index.php', + 'extradata' => 'menuaction=preferences.preferences_settings.index' + ); + } } diff --git a/preferences/setup/setup.inc.php b/preferences/setup/setup.inc.php index 4daf5d11b8..3201b88f71 100755 --- a/preferences/setup/setup.inc.php +++ b/preferences/setup/setup.inc.php @@ -22,7 +22,7 @@ $setup_info['preferences']['hooks']['deleteaccount'] = 'preferences_hooks::delet $setup_info['preferences']['hooks']['deletegroup'] = 'preferences_hooks::deleteaccount'; $setup_info['preferences']['hooks']['preferences'] = 'preferences_hooks::preferences'; $setup_info['preferences']['hooks']['settings'] = 'preferences_hooks::settings'; -$setup_info['preferences']['hooks']['edit_user'] = 'preferences.uisettings.edit_user'; +$setup_info['preferences']['hooks']['edit_user'] = 'preferences_hooks::edit_user'; /* Dependencies for this app to work */ $setup_info['preferences']['depends'][] = array(