From 251a761eaa58b6f5e1eac7ff02a5d879e22eaa77 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 23 Nov 2008 21:17:48 +0000 Subject: #337820 by Dave Reid: Rename menu path 'logout' to 'user/logout' for consistency. --- modules/system/system.install | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/system/system.install') 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 @@ -3130,6 +3130,16 @@ function system_update_7013() { return $ret; } +/** + * 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. -- cgit v1.2.3