You are here

function nodewords_update_6140 in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.2 nodewords.install \nodewords_update_6140()

Implements hook_update_N().

File

./nodewords.install, line 819
Installation file for nodewords.module.

Code

function nodewords_update_6140() {
  $node_types = array_keys(node_get_types('names'));
  $ret = array();
  foreach ($node_types as $node_type) {
    $value = variable_get('nodewords_basic_user_teaser_' . $node_type, NULL);
    if (isset($value)) {
      variable_set('nodewords_basic_use_teaser_' . $node_type, $value);
    }
  }
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Updated the module settings',
  );
  return $ret;
}