You are here

public function BotchaRecipebookAbstract::delete in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha_recipebook.controller.inc \BotchaRecipebookAbstract::delete()

File

controller/botcha_recipebook.controller.inc, line 118
Controller layer of the BotchaRecipebook objects.

Class

BotchaRecipebookAbstract
@file Controller layer of the BotchaRecipebook objects.

Code

public function delete() {
  Botcha::unsetRecipebook($this);

  // Delete recipe book from DB.
  BotchaRecipebookModel::delete($this);

  // Clean session to fetch new values.
  Botcha::clean();
}