You are here

function views_handler_field_rules_link::options_form in Rules Link 7.2

Same name and namespace in other branches
  1. 7 rules_link.views.inc \views_handler_field_rules_link::options_form()

Override options_form.

Overrides views_handler_field::options_form

File

./rules_link.views.inc, line 79
Provide views data.

Class

views_handler_field_rules_link
Renders the links for views.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['rules_link'] = array(
    '#type' => 'fieldset',
    '#title' => t('Rules Link settings'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['rules_link']['rules_link_parameters'] = array(
    '#type' => 'textfield',
    '#title' => t('Additional parameters for the rules link'),
    '#description' => t('Enter additional parameter using replacement patterns, use comma to enter multiple items. Whitespaces at the beginning and end of token will be trimmed.'),
    '#default_value' => $this->options['rules_link']['rules_link_parameters'],
  );
  $form['rules_link']['rules_link_rewrite'] = array(
    '#type' => 'textarea',
    '#title' => t('Rewrite the link text'),
    '#description' => t('Enter a custom link title or HTML that you want to place inside of the rules link. You may use the replacement patterns below.'),
    '#default_value' => $this->options['rules_link']['rules_link_rewrite'],
  );
  $form['rules_link']['rules_link_patterns'] = array(
    '#type' => 'fieldset',
    '#title' => t('Replacement patterns'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#value' => $form['alter']['help']['#value'],
  );
}