You are here

public function BotchaRecipeController::save in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeController::save()

Overrides IBotchaRecipeController::save

File

controller/recipe/botcha.recipe.controller.inc, line 43
Controller layer of the BotchaRecipe objects.

Class

BotchaRecipeController

Code

public function save($recipe) {

  // Save recipe to DB.
  $this
    ->getModel()
    ->save($recipe);

  // Return updated object to check results if necessary.
  return $this
    ->getRecipe($recipe->id, FALSE);
}