diff options
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. */ |