diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-07-07 13:12:22 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-07-07 13:12:22 -0700 |
commit | 1e4c645282fc84d5ee2fc0b27af11ba360ce71d2 (patch) | |
tree | 37f40bf14d8e66b166ce5a1dc710db65e99e93c4 /modules/system/system.install | |
parent | 2cd91be6330e1678e2d4c61b64da25db28559b8d (diff) | |
download | brdo-1e4c645282fc84d5ee2fc0b27af11ba360ce71d2.tar.gz brdo-1e4c645282fc84d5ee2fc0b27af11ba360ce71d2.tar.bz2 |
Issue #1613554 by drumm, BTMash: Fixed Update menu link queries from 6's strings.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ad158510a..676d27259 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3016,6 +3016,23 @@ function system_update_7073() { } /** + * Convert menu_links query strings to arrays. + */ +function system_update_7074() { + $mlids = db_select('menu_links', 'ml') + ->fields('ml', array('mlid')) + ->condition('options', '%query%', 'LIKE') + ->execute()->fetchCol(); + foreach ($mlids as $mlid) { + $menu_link = menu_link_load($mlid); + if (is_string($menu_link['options']['query'])) { + $menu_link['options']['query'] = drupal_get_query_array($menu_link['options']['query']); + menu_link_save($menu_link); + } + } +} + +/** * @} End of "defgroup updates-7.x-extra". * The next series of updates should start at 8000. */ |