summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-23 21:17:48 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-23 21:17:48 +0000
commit251a761eaa58b6f5e1eac7ff02a5d879e22eaa77 (patch)
treeccf1ccd340b33e910046a50343f6b8ca0b098e50 /modules/system/system.install
parent079a1bd2a5cf2d5429e64ed466dd51650b4ef5ba (diff)
downloadbrdo-251a761eaa58b6f5e1eac7ff02a5d879e22eaa77.tar.gz
brdo-251a761eaa58b6f5e1eac7ff02a5d879e22eaa77.tar.bz2
#337820 by Dave Reid: Rename menu path 'logout' to 'user/logout' for consistency.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index bcde1b943..518a11e9f 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -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.
*/