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(