You are here

function BotchaRecipebookAbstract::setRecipe in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 7.2 controller/botcha_recipebook.controller.inc \BotchaRecipebookAbstract::setRecipe()
1 call to BotchaRecipebookAbstract::setRecipe()
BotchaRecipebookAbstract::getRecipes in controller/botcha_recipebook.controller.inc
@todo BotchaRecipebook getRecipes Description.

File

controller/botcha_recipebook.controller.inc, line 149
Controller layer of the BotchaRecipebook objects.

Class

BotchaRecipebookAbstract
@file Controller layer of the BotchaRecipebook objects.

Code

function setRecipe($recipe_id) {
  $this->recipes[$recipe_id] = $recipe_id;

  // Save changed state.
  Botcha::setRecipebook($this);
  return $this;
}