diff options
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 4e6703148..eae01725f 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1978,11 +1978,23 @@ function system_update_7015() { ->fields(array('link_path' => 'user/logout')) ->condition('link_path', 'logout') ->execute(); - - db_update('menu_links') + db_update('menu_links') ->fields(array('router_path' => 'user/logout')) ->condition('router_path', 'logout') ->execute(); + + db_update('menu_links') + ->fields(array( + 'menu_name' => 'user-menu', + 'plid' => 0, + )) + ->condition(db_or() + ->condition('link_path', 'user/logout') + ->condition('router_path', 'user/logout') + ) + ->condition('module', 'system') + ->condition('customized', 0) + ->execute(); } /** |