function nodewords_update_6131 in Nodewords: D6 Meta Tags 6
Same name and namespace in other branches
- 6.2 nodewords.install \nodewords_update_6131()
Implements hook_update_N().
File
- ./
nodewords.install, line 707 - Installation file for nodewords.module.
Code
function nodewords_update_6131() {
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'basic\\_metatags\\_%'");
$ret = array();
while ($row = db_fetch_object($result)) {
$value = variable_get($row->name, NULL);
if (isset($value)) {
variable_set(str_replace('basic_metatags_', 'nodewords_basic', $row->name), $value);
variable_del($row->name);
}
}
$ret[] = array(
'success' => TRUE,
'query' => 'Updated the module settings',
);
return $ret;
}