public function BotchaFormNone::save in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 7.2 controller/botcha_form.controller.inc \BotchaFormNone::save()
Overrides BotchaFormAbstract::save
File
- controller/
botcha_form.controller.inc, line 223 - Controller layer of the BotchaForm objects.
Class
- BotchaFormNone
- Dummy class, created for data consistency and for interface unifying. When there is no form, this class is used as a handler. It has no logic at all - by design.
Code
public function save() {
Botcha::unsetForm($this);
// Save form to DB.
BotchaFormModel::save($this);
// Clean session to fetch new values.
Botcha::clean();
return $this;
}