public function BotchaRecipebook::getForms in BOTCHA Spam Prevention 7.3
Same name and namespace in other branches
- 6.3 controller/recipebook/botcha.recipebook.controller.inc \BotchaRecipebook::getForms()
@todo BotchaRecipebook getForms Description.
Return value
File
- controller/
recipebook/ botcha.recipebook.controller.inc, line 194 - Controller layer of the BotchaRecipebook objects.
Class
Code
public function getForms() {
if (!isset($this->forms)) {
$fs = BotchaModel::getRecipebooksForms(array(
'mode' => 'form',
'recipebooks' => $this->id,
));
foreach ($fs as $form_id) {
$this
->setForm($form_id);
}
}
return (array) $this->forms;
}