You are here

public function BotchaRecipeUsingJsAbstract::getJs in BOTCHA Spam Prevention 7.3

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

Should be overridden.

Return value

array

Overrides BotchaRecipe::getJs

File

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

Class

BotchaRecipeUsingJsAbstract

Code

public function getJs() {

  // JS has to reconstruct the token from tok1, part of field_dflt, tok2.
  return array(
    'name' => $this
      ->getProperty($this->settings['js']['name'], 'getJsName'),
    'pos' => $this
      ->getProperty($this->settings['js']['pos'], 'getJsPos'),
    'match' => $this
      ->getProperty($this->settings['js']['match'], 'getJsMatch'),
    'secure_token' => $this
      ->getProperty($this->settings['js']['secure_token'], 'getJsSecureToken'),
    'chops' => $this
      ->getProperty($this->settings['js']['chops'], 'getJsChops'),
  );
}