public function BotchaRecipeTimegate::generateFormElements in BOTCHA Spam Prevention 7.3
Same name and namespace in other branches
- 6.2 controller/botcha_recipe.controller.inc \BotchaRecipeTimegate::generateFormElements()
- 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeTimegate::generateFormElements()
- 7.2 controller/botcha_recipe.controller.inc \BotchaRecipeTimegate::generateFormElements()
Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?
Overrides BotchaRecipe::generateFormElements
File
- controller/
recipe/ botcha.recipe.controller.inc, line 962 - Controller layer of the BotchaRecipe objects.
Class
Code
public function generateFormElements() {
$fields = $this
->getProperty($this->settings['fields'], 'getFields');
return array_merge(parent::generateFormElements(), array(
$fields[0]['name'] => array(
'#type' => 'hidden',
'#title' => 'Timegate',
'#weight' => 5,
'#required' => FALSE,
'#default_value' => time(),
),
));
}