function nodewords_update_6164 in Nodewords: D6 Meta Tags 6
Same name and namespace in other branches
- 6.2 nodewords.install \nodewords_update_6164()
Implements hook_update_N().
1 string reference to 'nodewords_update_6164'
- nodewords_uninstall in ./
nodewords.install - Implements hook_uninstall().
File
- ./
nodewords.install, line 1291 - Installation file for nodewords.module.
Code
function nodewords_update_6164() {
$node_types = array_keys(node_get_types('names'));
$ret = array();
$value = variable_get('nodewords_basic_use_teaser', NULL);
if (isset($value)) {
variable_set('nodewords_use_teaser', $value);
}
$value = variable_get('nodewords_basic_user_teaser', NULL);
if (isset($value)) {
variable_set('nodewords_user_teaser', $value);
}
foreach ($node_types as $node_type) {
$value = variable_get('nodewords_basic_use_teaser_' . $node_type, NULL);
if (isset($value)) {
variable_set('nodewords_use_teaser_' . $node_type, $value);
variable_del('nodewords_basic_use_teaser_' . $node_type);
}
$value = variable_get('nodewords_basic_user_teaser_' . $node_type, NULL);
if (isset($value)) {
variable_del('nodewords_basic_user_teaser_' . $node_type);
}
}
$value = variable_get('nodewords_use_teaser', NULL);
if (isset($value) && $value) {
variable_set('metatags_generation_method', 2);
}
variable_set('nodewords_6164', TRUE);
$ret[] = array(
'success' => TRUE,
'query' => 'Updated the module settings',
);
return $ret;
}