function flag_lists_handler_field_template::options_form in Flag Lists 7
Same name and namespace in other branches
- 6 includes/flag_lists_handler_field_template.inc \flag_lists_handler_field_template::options_form()
- 7.3 includes/flag_lists_handler_field_template.inc \flag_lists_handler_field_template::options_form()
Provide link to list option
Overrides views_handler_field::options_form
File
- includes/
flag_lists_handler_field_template.inc, line 29 - Contains the basic 'list template' field handler.
Class
- flag_lists_handler_field_template
- Field handler to provide simple renderer that allows linking to a list's template flag.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_template'] = array(
'#title' => t('Link this field to its list template'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_template']),
);
}