function metatag_update_7107 in Metatag 7
Fix the global config translation strings.
File
- ./
metatag.install, line 2468 - Install, update, and uninstall functions for the metatag module.
Code
function metatag_update_7107() {
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:global:', 'metatag:metatag_config:global:'),\n context = REPLACE(context, 'global:', 'metatag_config:global:')\n WHERE textgroup = 'metatag'\n AND location LIKE 'metatag:global:%'");
return t('Fixed the Metatag global config string translations.');
}