You are here

function BotchaRecipeNoResubmit::getInfo in BOTCHA Spam Prevention 7.2

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

Used to get information about the recipe. Must be overridden.

Overrides BotchaRecipe::getInfo

File

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

Class

BotchaRecipeNoResubmit

Code

function getInfo() {
  parent::getInfo();
  $this->description = t('Prevent form resubmission.' . ' Bots will try to resubmit old form prepared.' . ' Form is remembered, and only one submission is allowed.');
  $this->error_text .= '<br />' . t('Form session reuse detected.') . ' ' . t('An old form was submitted again, which may happen' . ' if it was retrieved from browser history using "Back" button.') . '<br />' . t('Please try again - fill all entries on this page' . ' without going "Back".');
}