You are here

function BotchaRecipe::handle in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha_recipe.controller.inc \BotchaRecipe::handle()
  2. 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipe::handle()
  3. 7.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipe::handle()

Handle form depending on the result of spam check.

_state

Parameters

type $result:

type $form:

1 call to BotchaRecipe::handle()
BotchaRecipeNoResubmit::handle in controller/botcha_recipe.controller.inc
Handle form depending on the result of spam check.
1 method overrides BotchaRecipe::handle()
BotchaRecipeNoResubmit::handle in controller/botcha_recipe.controller.inc
Handle form depending on the result of spam check.

File

controller/botcha_recipe.controller.inc, line 222
Controller layer of the BotchaRecipe objects.

Class

BotchaRecipe
Abstract class to describe recipe data structure.

Code

function handle($result, $form, $form_state) {

  // !!~ @todo handle Implement real logic of handling.
  switch ($result) {
    case 'success':
      break;
    case 'spam':
    default:
      break;
  }
}