diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-23 21:17:48 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-23 21:17:48 +0000 |
commit | 251a761eaa58b6f5e1eac7ff02a5d879e22eaa77 (patch) | |
tree | ccf1ccd340b33e910046a50343f6b8ca0b098e50 /modules/user/user.module | |
parent | 079a1bd2a5cf2d5429e64ed466dd51650b4ef5ba (diff) | |
download | brdo-251a761eaa58b6f5e1eac7ff02a5d879e22eaa77.tar.gz brdo-251a761eaa58b6f5e1eac7ff02a5d879e22eaa77.tar.bz2 |
#337820 by Dave Reid: Rename menu path 'logout' to 'user/logout' for consistency.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 6e8b83a80..3f3bedb25 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -977,6 +977,13 @@ function user_menu() { 'type' => MENU_CALLBACK, ); + $items['user/logout'] = array( + 'title' => 'Log out', + 'access callback' => 'user_is_logged_in', + 'page callback' => 'user_logout', + 'weight' => 10, + ); + // User administration pages. $items['admin/user'] = array( 'title' => 'User management', @@ -1033,13 +1040,6 @@ function user_menu() { 'type' => MENU_CALLBACK, ); - $items['logout'] = array( - 'title' => 'Log out', - 'access callback' => 'user_is_logged_in', - 'page callback' => 'user_logout', - 'weight' => 10, - ); - $items['user/%user_uid_optional'] = array( 'title' => 'My account', 'title callback' => 'user_page_title', @@ -2415,4 +2415,3 @@ function _user_forms(&$edit, $account, $category, $hook = 'form') { return empty($groups) ? FALSE : $groups; } - |