summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-08 05:28:30 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-08 05:28:30 +0000
commit17d30dc3a37c9eb524d601a34004efc92322d984 (patch)
tree358b7a174bddabb28856dfb2063b496561f253be /modules/system/system.install
parent44c2bfdcd1ec8e309ad05c2d681d5d3755adecea (diff)
downloadbrdo-17d30dc3a37c9eb524d601a34004efc92322d984.tar.gz
brdo-17d30dc3a37c9eb524d601a34004efc92322d984.tar.bz2
#925778 by mradcliffe, chx, sun, manarth: Fixed user edit title incorrectly shows currently logged in user.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install16
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();
}
/**