You are here

function shorten_update_6100 in Shorten URLs 6

Implementation of hook_update_N().

File

./shorten.install, line 57
(Un)installs the Shorten module.

Code

function shorten_update_6100() {
  $r = FALSE;
  if (variable_get('shorten_service', 'is.gd') == 'Drupal ShortURL module') {
    variable_set('shorten_service', 'This site');
    $r = TRUE;
  }
  if (variable_get('shorten_service_backup', 'TinyURL') == 'Drupal ShortURL module') {
    variable_set('shorten_service_backup', 'This site');
    $r = TRUE;
  }
  return array(
    array(
      'success' => TRUE,
      'query' => $r ? t('Shorten URLs service updated') : t('Caches refreshed'),
    ),
  );
}