You are here

public function views_handler_field_aggregator_category::options_form in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/aggregator/views_handler_field_aggregator_category.inc \views_handler_field_aggregator_category::options_form()
  2. 6.2 modules/aggregator/views_handler_field_aggregator_category.inc \views_handler_field_aggregator_category::options_form()

Provide link to category option

Overrides views_handler_field::options_form

File

modules/aggregator/views_handler_field_aggregator_category.inc, line 36
Definition of views_handler_field_aggregator_category.

Class

views_handler_field_aggregator_category
Field handler to provide simple renderer that allows linking to aggregator category.

Code

public function options_form(&$form, &$form_state) {
  $form['link_to_category'] = array(
    '#title' => t('Link this field to its aggregator category page'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_category']),
  );
  parent::options_form($form, $form_state);
}