You are here

function spambot_update_6301 in Spambot 6.3

File

./spambot.install, line 58

Code

function spambot_update_6301() {
  $ret = array();

  // Change criteria settings from booleans to numbers
  if (variable_set('spambot_criteria_email', TRUE)) {
    variable_set('spambot_criteria_email', 1);
  }
  if (variable_set('spambot_criteria_username', FALSE)) {
    variable_set('spambot_criteria_username', 1);
  }
  if (variable_set('spambot_criteria_ip', FALSE)) {
    variable_set('spambot_criteria_ip', 1);
  }
  return $ret;
}