diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-20 19:27:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-20 19:27:51 +0000 |
commit | 16d3f9bc60fa765d68ef5472b61b2642a56789bc (patch) | |
tree | 7a964c1afef378a2bc34f00d9bec0d7d4680aa59 | |
parent | 228b3c7cc84717e5deae769d7aa3a3e29fdae6a1 (diff) | |
download | brdo-16d3f9bc60fa765d68ef5472b61b2642a56789bc.tar.gz brdo-16d3f9bc60fa765d68ef5472b61b2642a56789bc.tar.bz2 |
- Patch #10845 by James: fixed the user/help page.
-rw-r--r-- | modules/user.module | 6 | ||||
-rw-r--r-- | modules/user/user.module | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index 38c7c13f4..ef6dcdbe5 100644 --- a/modules/user.module +++ b/modules/user.module @@ -601,6 +601,8 @@ function user_menu($may_cache) { 'callback' => 'user_page', 'access' => $user->uid == 0 && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'user/password', 'title' => t('request new password'), 'callback' => 'user_page', 'access' => $user->uid == 0, 'type' => MENU_LOCAL_TASK); + $items[] = array('path' => 'user/help', 'title' => t('help'), + 'callback' => 'user_help_page', 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $access); @@ -1634,10 +1636,10 @@ function user_help($section) { } /** - * Menu callback; Prints user-specific information from admin/help. + * Menu callback; Prints user-specific help information. */ function user_help_page() { - print theme('page', user_help('admin/help#user')); + print theme('page', user_help('user/help#user')); } /** diff --git a/modules/user/user.module b/modules/user/user.module index 38c7c13f4..ef6dcdbe5 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -601,6 +601,8 @@ function user_menu($may_cache) { 'callback' => 'user_page', 'access' => $user->uid == 0 && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'user/password', 'title' => t('request new password'), 'callback' => 'user_page', 'access' => $user->uid == 0, 'type' => MENU_LOCAL_TASK); + $items[] = array('path' => 'user/help', 'title' => t('help'), + 'callback' => 'user_help_page', 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/user', 'title' => t('users'), 'callback' => 'user_admin', 'access' => $access); @@ -1634,10 +1636,10 @@ function user_help($section) { } /** - * Menu callback; Prints user-specific information from admin/help. + * Menu callback; Prints user-specific help information. */ function user_help_page() { - print theme('page', user_help('admin/help#user')); + print theme('page', user_help('user/help#user')); } /** |