You are here

public static function BotchaRecipebookModel::getRecipebook in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 6.3 model/recipebook/botcha.recipebook.model.inc \BotchaRecipebookModel::getRecipebook()
  2. 7.2 model/botcha_recipebook.model.inc \BotchaRecipebookModel::getRecipebook()
  3. 7.3 model/recipebook/botcha.recipebook.model.inc \BotchaRecipebookModel::getRecipebook()
1 call to BotchaRecipebookModel::getRecipebook()
BotchaRecipebookAbstract::getRecipebook in controller/botcha_recipebook.controller.inc

File

model/botcha_recipebook.model.inc, line 28
Contains BotchaRecipebookModel class.

Class

BotchaRecipebookModel
@file Contains BotchaRecipebookModel class.

Code

public static function getRecipebook($id) {
  $recipebooks = BotchaRecipebookModel::getRecipebooks();
  return !empty($recipebooks[$id]) ? $recipebooks[$id] : NULL;
}