You are here

public static function Botcha::unsetForm in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 7.2 controller/botcha.controller.inc \Botcha::unsetForm()
2 calls to Botcha::unsetForm()
BotchaFormAbstract::delete in controller/botcha_form.controller.inc
BotchaFormNone::save in controller/botcha_form.controller.inc

File

controller/botcha.controller.inc, line 323
Contains Botcha class.

Class

Botcha
Singleton realization of botcha application.

Code

public static function unsetForm($form) {

  //unset(self::$forms[$form->id]);
  unset($_SESSION[self::BOTCHA_SESSION_FORMS][$form->id]);
}