You are here

protected function BotchaRecipeUsingJsAbstract::getJsPos in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.2 controller/botcha_recipe.controller.inc \BotchaRecipeUsingJsAbstract::getJsPos()
  2. 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeUsingJsAbstract::getJsPos()
  3. 7.2 controller/botcha_recipe.controller.inc \BotchaRecipeUsingJsAbstract::getJsPos()

What position is the part of the token.

1 call to BotchaRecipeUsingJsAbstract::getJsPos()
BotchaRecipeUsingJsAbstract::getJsMatch in controller/recipe/botcha.recipe.controller.inc
What JS matches in the field.

File

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

Class

BotchaRecipeUsingJsAbstract

Code

protected function getJsPos() {
  return strlen($this
    ->getProperty($this->settings['fields'][0]['prefix'], 'getFieldPrefix'));
}