You are here

function nodewords_update_6143 in Nodewords: D6 Meta Tags 6

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

Implements hook_update_N().

File

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

Code

function nodewords_update_6143() {
  $ret = array();
  if (db_table_exists('nodewords_10')) {
    db_drop_table($ret, 'nodewords_10');
  }

  // Only update if the setting have the default value, and if it has been
  // previously set.
  $value = variable_get('nodewords_max_size', NULL);
  if (isset($value) && $value == 255) {
    variable_set('nodewords_max_size', 350);
    $ret[] = array(
      'success' => TRUE,
      'query' => check_plain('The default maximum meta tags length has been extended to 350 characters to improve Google results pages. See http://googleblog.blogspot.com/2009/03/two-new-improvements-to-google-results.html for more information'),
    );
  }
  return $ret;
}