You are here

function context_reaction_template_suggestions::options_form in Context 7.3

Display the text area field for adding new template suggestions.

Overrides context_reaction::options_form

File

plugins/context_reaction_template_suggestions.inc, line 11

Class

context_reaction_template_suggestions
Add template suggestions as a context reaction.

Code

function options_form($context) {
  $default_value = $this
    ->fetch_from_context($context);
  return array(
    '#title' => t('Template suggestions'),
    '#type' => 'textarea',
    '#description' => t('Enter template suggestions such as "page__front", one per line, in order of preference (using underscores instead of hyphens). For more information, please visit <a href="@template-suggestions">Drupal 7 Template (Theme Hook) Suggestions</a>.', array(
      '@template-suggestions' => 'http://drupal.org/node/1089656',
    )),
    '#default_value' => is_string($default_value) ? $default_value : '',
  );
}