function botcha_form_load in BOTCHA Spam Prevention 6.3
Same name and namespace in other branches
- 6.2 botcha.module \botcha_form_load()
- 7.2 botcha.module \botcha_form_load()
- 7.3 botcha.module \botcha_form_load()
@todo Move to an Application. Load an object of form.
File
- ./
botcha.module, line 450 - BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
Code
function botcha_form_load($form_id) {
$app = ComponentFactory::get('Botcha', Component::TYPE_CONTROLLER, Component::ID_APPLICATION);
//return $this->getController(Botcha::CONTROLLER_TYPE_FORM)->getForm($form_id, FALSE);
$botcha_form = $app
->getController(Botcha::CONTROLLER_TYPE_FORM)
->getForm($form_id, FALSE);
return $botcha_form;
}