You are here

public function BotchaRecipe::generateFormElements in BOTCHA Spam Prevention 7.3

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

Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?

3 calls to BotchaRecipe::generateFormElements()
BotchaRecipe::apply in controller/recipe/botcha.recipe.controller.inc
BotchaRecipeTimegate::generateFormElements in controller/recipe/botcha.recipe.controller.inc
Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?
BotchaRecipeUsingJsAbstract::generateFormElements in controller/recipe/botcha.recipe.controller.inc
Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?
2 methods override BotchaRecipe::generateFormElements()
BotchaRecipeTimegate::generateFormElements in controller/recipe/botcha.recipe.controller.inc
Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?
BotchaRecipeUsingJsAbstract::generateFormElements in controller/recipe/botcha.recipe.controller.inc
Used to get information about the recipe. Must be overridden with calling to parent::generateFormElements. @todo Switch from indexed array to associative. @see?

File

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

Class

BotchaRecipe
Abstract class to describe recipe data structure.

Code

public function generateFormElements() {
  $css = $this
    ->getProperty($this->settings['css'], 'getCss');
  if (!empty($css)) {

    // @todo Abstract it.

    //drupal_set_html_head('<style type="text/css">' . $css . '</style>');
    drupal_add_css("{$this->settings['css']}", array(
      'type' => 'inline',
    ));
  }
  return array();
}