You are here

function realname_update_6101 in Real Name 6

Implementation of hook_update_N().

File

./realname.install, line 99
Handles installation and updates for the RealName module.

Code

function realname_update_6101() {
  $ret = array();
  if (variable_get('realname_use_myacct', TRUE)) {
    variable_set('realname_myacct', 'My account');
    $ret[] = array(
      'success' => TRUE,
      'query' => "variable_set('realname_myacct', 'My account')",
    );
  }
  else {
    variable_set('realname_myacct', NULL);
    $ret[] = array(
      'success' => TRUE,
      'query' => "variable_set('realname_myacct', NULL)",
    );
  }
  variable_del('realname_use_myacct');
  return $ret;
}