function views_handler_field_aggregator_category::options_form in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/aggregator/views_handler_field_aggregator_category.inc \views_handler_field_aggregator_category::options_form()
- 7.3 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 25
Class
- views_handler_field_aggregator_category
- Field handler to provide simple renderer that allows linking to aggregator category.
Code
function options_form(&$form, &$form_state) {
parent::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']),
);
}