You are here

public function BotchaRecipebookController::getRecipebooks in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.3 controller/recipebook/botcha.recipebook.controller.inc \BotchaRecipebookController::getRecipebooks()

Overrides IBotchaRecipebookController::getRecipebooks

File

controller/recipebook/botcha.recipebook.controller.inc, line 51
Controller layer of the BotchaRecipebook objects.

Class

BotchaRecipebookController

Code

public function getRecipebooks($reset = FALSE, $withNone = FALSE) {

  // @todo Pass parameters accurately (add reset).
  $recipebooks = $this
    ->getModel()
    ->getRecipebooks();
  if ($withNone) {

    // @todo Remove hardcode.
    $recipebook_none = $this
      ->getRecipebook('none');
    $recipebooks[$recipebook_none->id] = $recipebook_none;
  }
  return $recipebooks;
}