You are here

function nodewords_update_6104 in Nodewords: D6 Meta Tags 6

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

Implements hook_update_N().

File

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

Code

function nodewords_update_6104() {
  $ret = array();
  $head_tags = variable_get('nodewords_head', array());
  array_change_key_case($head_tags);
  if (isset($head_tags['geourl'])) {
    $head_tags['location'] = $head_tags['geourl'];
    unset($head_tags['geourl']);
  }
  variable_set('nodewords_head', $head_tags);
  $edit_tags = variable_get('nodewords_edit', array());
  if (isset($edit_tags['geourl'])) {
    $edit_tags['location'] = $edit_tags['geourl'];
    unset($edit_tags['geourl']);
    variable_set('nodewords_edit', $edit_tags);
  }
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Updated the module settings',
  );
  return $ret;
}