You are here

function BotchaRecipeObscureUrl::getFieldName in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()
  2. 7.2 controller/botcha_recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()
  3. 7.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()

Overrides BotchaRecipe::getFieldName

File

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

Class

BotchaRecipeObscureUrl

Code

function getFieldName($delta) {
  switch ($delta) {
    case 2:
      return substr($this
        ->getProperty($this->seed, 'getSeed'), 1, 4) . '_name';
      break;
    case 1:
      return parent::getFieldName($delta);
      break;
    case 0:
    default:

      // @todo Remove hardcode.
      return 'botcha';
      break;
  }
}