summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-29 09:33:51 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-29 09:33:51 +0000
commitbc719d0c550fe0f6120676481d3ed5e039db4790 (patch)
treec83b9975f827560038c153868348bacc8699d3d4 /modules/system/system.install
parent205c5b2415deb10d4afba32249e7f5f989a097b1 (diff)
downloadbrdo-bc719d0c550fe0f6120676481d3ed5e039db4790.tar.gz
brdo-bc719d0c550fe0f6120676481d3ed5e039db4790.tar.bz2
- Patch #337820 by Dave Reid, Damien Tournoud, et al: rename menu path 'logout' to 'user/logout'. For real now.
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 ae9cd81cd..ba0d5b59a 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3133,6 +3133,16 @@ function system_update_7014() {
}
/**
+ * Change the user logout path.
+ */
+function system_update_7015() {
+ $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.
*/