function i18ncontent_update_6001 in Internationalization 6
The old module with the same name had a different approach, so the update will be full install.
File
- i18ncontent/
i18ncontent.install, line 42 - Installation file for i18ncontent module.
Code
function i18ncontent_update_6001() {
$ret = array();
// Update location for existing strings for this textgroup that was wrong
$ret[] = update_sql("UPDATE {locales_source} SET location = CONCAT('type:', location) WHERE textgroup = 'nodetype' AND location NOT LIKE 'type:%'");
// Delete all indexing data, it will be recreated
$ret[] = update_sql("DELETE FROM {i18n_strings} WHERE lid IN (SELECT lid FROM {locales_source} WHERE textgroup = 'nodetype')");
return $ret;
}