You are here

function hook_update_5200 in Tweet 5.2

Implementation of hook_update_N().

File

./tweet.install, line 11
Builds links to post pages to twitter.

Code

function hook_update_5200() {
  $format = '[url] ';
  if (variable_get('tweet_title', 1)) {
    $format .= '[title]';
  }
  if (variable_get('tweet_hashtag', '')) {
    if (drupal_substr($format, -1, 1) != ' ') {
      $format .= ' ';
    }
    $format .= variable_get('tweet_hashtag', '');
  }
  variable_set('tweet_format', $format);
  variable_del('tweet_title', 1);
  variable_del('tweet_hashtag', '');
  return array();
}