You are here

function flag_lists_handler_field_list::options_form in Flag Lists 7

Same name and namespace in other branches
  1. 6 includes/flag_lists_handler_field_list.inc \flag_lists_handler_field_list::options_form()
  2. 7.3 includes/flag_lists_handler_field_list.inc \flag_lists_handler_field_list::options_form()

Provide link to list option

Overrides views_handler_field::options_form

File

includes/flag_lists_handler_field_list.inc, line 30
Contains the basic 'list title' field handler.

Class

flag_lists_handler_field_list
Field handler to provide simple renderer that allows linking to a list.

Code

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