You are here

function globalredirect_update_5100 in Global Redirect 5

Update to fix the silly deslash typo mistake

File

./globalredirect.install, line 44
This is the GlobalRedirect install file which configures the system during install.

Code

function globalredirect_update_5100() {
  $deslash = variable_get('globalredirect_deslah', NULL);
  $ret = array();
  if (is_null($deslash)) {
    $ret[] = array(
      'success' => TRUE,
      'query' => 'There was no "deslah" option to fix... Nothing to do. Issue #348120 does not apply.',
    );
  }
  else {
    variable_set('globalredirect_deslash', $deslash);
    variable_del('globalredirect_deslah');
    $ret[] = array(
      'success' => TRUE,
      'query' => 'Issue #348120 applies. Copied setting over to correct name. Your deslash settings should work now.',
    );
  }
  return $ret;
}