function metatag_update_7010 in Metatag 7
Fix {metatag} records for users.
File
- ./
metatag.install, line 1088 - Install, update, and uninstall functions for the metatag module.
Code
function metatag_update_7010() {
// Fix the {metatag} table first.
metatag_update_7015();
// Remove duplicates.
_metatag_remove_dupes('user');
// Update User values.
$result = db_query("UPDATE {metatag} SET language = :language WHERE entity_type='user'", array(
':language' => LANGUAGE_NONE,
));
if ($result
->rowCount() > 0) {
drupal_set_message(t('Fixed language values for @count user records.', array(
'@count' => $result
->rowCount(),
)));
}
}