You are here

function context_reaction_theme_html::options_form in Context 7.3

Allow admins to provide additional body classes.

Overrides context_reaction_theme::options_form

File

plugins/context_reaction_theme_html.inc, line 9

Class

context_reaction_theme_html
Expose themes as context reactions.

Code

function options_form($context) {
  $values = $this
    ->fetch_from_context($context);
  $form = array(
    'class' => array(
      '#title' => t('Section class'),
      '#description' => t('Provides this text as an additional body class (in <strong>$classes</strong> in html.tpl.php) when this section is active.'),
      '#type' => 'textfield',
      '#maxlength' => 64,
      '#default_value' => isset($values['class']) ? $values['class'] : '',
    ),
  );
  return $form;
}