You are here

public function BotchaRecipeModel::getRecipe in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.2 model/botcha_recipe.model.inc \BotchaRecipeModel::getRecipe()
  2. 6.3 model/recipe/botcha.recipe.model.inc \BotchaRecipeModel::getRecipe()
  3. 7.2 model/botcha_recipe.model.inc \BotchaRecipeModel::getRecipe()

Overrides IBotchaRecipeModel::getRecipe

File

model/recipe/botcha.recipe.model.inc, line 41
Contains BotchaRecipeModel class.

Class

BotchaRecipeModel

Code

public function getRecipe($id) {
  $recipes = $this
    ->getRecipes();
  return !empty($recipes[$id]) ? $recipes[$id] : NULL;
}