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