You are here

public static function BotchaRecipeModel::getRecipe in BOTCHA Spam Prevention 7.2

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.3 model/recipe/botcha.recipe.model.inc \BotchaRecipeModel::getRecipe()
1 call to BotchaRecipeModel::getRecipe()
BotchaRecipe::getRecipe in controller/botcha_recipe.controller.inc

File

model/botcha_recipe.model.inc, line 36
Contains BotchaRecipeModel class.

Class

BotchaRecipeModel
@file Contains BotchaRecipeModel class.

Code

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