You are here

function botcha_rules_action_regenerate_seed in BOTCHA Spam Prevention 6.3

Same name and namespace in other branches
  1. 6 botcha.rules.inc \botcha_rules_action_regenerate_seed()
  2. 6.2 botcha.rules.inc \botcha_rules_action_regenerate_seed()
  3. 7 botcha.rules.inc \botcha_rules_action_regenerate_seed()
  4. 7.2 botcha.rules.inc \botcha_rules_action_regenerate_seed()
  5. 7.3 botcha.rules.inc \botcha_rules_action_regenerate_seed()

Action: Regenerate seed.

File

./botcha.rules.inc, line 84
Rules integration for the BOTCHA module.

Code

function botcha_rules_action_regenerate_seed() {

  // Generate unique secret for this site
  $secret = md5(uniqid(mt_rand(), TRUE));
  variable_set('botcha_secret', $secret);

  //  drupal_set_message(t('New BOTCHA secret key have been generated.'));
}