function tweet_update_6300 in Tweet 6.3
Same name and namespace in other branches
- 6.2 tweet.install \tweet_update_6300()
Implementation of hook_update_N().
File
- ./
tweet.install, line 11 - Builds links to post pages to twitter.
Code
function tweet_update_6300() {
if (module_exists('shorten')) {
$method = variable_get('tweet_method', 'curl');
variable_set('shorten_method', $method);
variable_del('tweet_method');
$service = variable_get('tweet_service', 'is.gd');
variable_set('shorten_service', $service);
variable_del('tweet_service');
$backup = variable_get('tweet_service_backup', 'TinyURL');
variable_set('shorten_service_backup', $backup);
variable_del('tweet_service_backup');
}
return array(
array(
'success' => TRUE,
'query' => t('Settings converted from Tweet to Shorten.'),
),
);
}