You are here

function metatag_update_7105 in Metatag 7

Fix the output translation strings.

1 call to metatag_update_7105()
metatag_update_7106 in ./metatag.install
Rerun update 7105.

File

./metatag.install, line 2442
Install, update, and uninstall functions for the metatag module.

Code

function metatag_update_7105() {
  if (!module_exists('locale') || !db_table_exists('locales_source')) {
    return t('No translations to fix as the locale system is not enabled.');
  }
  db_query("UPDATE {locales_source}\n    SET location = REPLACE(location, 'metatag:metatag:', 'metatag:output:'),\n      context = REPLACE(context, 'metatag:', 'output:')\n    WHERE textgroup = 'metatag'\n    AND location LIKE 'metatag:metatag:%'");
  return t('Fixed the Metatag output strings.');
}