Index: modules/locale/locale.test =================================================================== RCS file: /cvs/drupal/drupal/modules/locale/locale.test,v retrieving revision 1.5 diff -u -p -r1.5 locale.test --- modules/locale/locale.test 11 Nov 2008 20:22:17 -0000 1.5 +++ modules/locale/locale.test 23 Nov 2008 05:16:36 -0000 @@ -58,7 +58,7 @@ class LocaleTestCase extends DrupalWebTe // No t() here, we do not want to add this string to the database and it's // surely not translated yet. $this->assertText($native, 'Test language added'); - $this->drupalGet('logout'); + $this->drupalLogout(); // Search for the name and translate it. $this->drupalLogin($translate_user); @@ -90,7 +90,7 @@ class LocaleTestCase extends DrupalWebTe $this->drupalPost('admin/build/translate/search', $search, t('Search')); // The indicator should not be here. $this->assertNoRaw($language_indicator, 'String is translated'); - $this->drupalGet('logout'); + $this->drupalLogout(); // Delete the language. $this->drupalLogin($admin_user); @@ -104,7 +104,7 @@ class LocaleTestCase extends DrupalWebTe $this->assertNoText($langcode, 'Language code not found'); $this->assertNoText($name, 'Name not found'); $this->assertNoText($native, 'Native not found'); - $this->drupalGet('logout'); + $this->drupalLogout(); // Delete the name string. $this->drupalLogin($translate_user); Index: modules/poll/poll.test =================================================================== RCS file: /cvs/drupal/drupal/modules/poll/poll.test,v retrieving revision 1.5 diff -u -p -r1.5 poll.test --- modules/poll/poll.test 5 Aug 2008 18:07:14 -0000 1.5 +++ modules/poll/poll.test 23 Nov 2008 05:16:36 -0000 @@ -113,7 +113,7 @@ class PollVoteTestCase extends PollTestC $title = $this->randomName(); $choices = $this->_generateChoices(7); $poll_nid = $this->pollCreate($title, $choices, FALSE); - $this->drupalGet('logout'); + $this->drupalLogout(); $web_user = $this->drupalCreateUser(array('cancel own vote', 'inspect all votes', 'vote on polls', 'access content')); $this->drupalLogin($web_user); @@ -130,4 +130,3 @@ class PollVoteTestCase extends PollTestC $this->assertText($choices[0], 'Vote recorded'); } } - Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.56 diff -u -p -r1.56 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 9 Nov 2008 03:07:54 -0000 1.56 +++ modules/simpletest/drupal_web_test_case.php 23 Nov 2008 05:16:38 -0000 @@ -661,7 +661,7 @@ class DrupalWebTestCase { */ function drupalLogout() { // Make a request to the logout page. - $this->drupalGet('logout'); + $this->drupalGet('user/logout'); // Load the user page, the idea being if you were properly logged out you should be seeing a login screen. $this->drupalGet('user'); Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.282 diff -u -p -r1.282 system.install --- modules/system/system.install 22 Nov 2008 10:59:49 -0000 1.282 +++ modules/system/system.install 23 Nov 2008 05:16:44 -0000 @@ -3131,6 +3131,16 @@ function system_update_7013() { } /** + * Change the user logout path. + */ +function system_update_7014() { + $ret = array(); + $ret[] = update_sql("UPDATE {menu_links} SET link_path = 'user/logout' WHERE link_path = 'logout'"); + $ret[] = update_sql("UPDATE {menu_links} SET router_path = 'user/logout' WHERE router_path = 'logout'"); + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.938 diff -u -p -r1.938 user.module --- modules/user/user.module 20 Nov 2008 06:56:17 -0000 1.938 +++ modules/user/user.module 23 Nov 2008 05:16:48 -0000 @@ -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, $ return empty($groups) ? FALSE : $groups; } -