You are here

function views_filters_populate_handler_filter::options_form in Views filters populate 6

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

File

views/views_filters_populate_handler_filter.inc, line 34
Filter classes.

Class

views_filters_populate_handler_filter
Generic views handler filter to add code to manipulate the query object.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  foreach ((array) $this->view->display_handler
    ->get_handlers('filter') as $id => $filter) {
    if ($id != $this->options['id']) {
      $options[$id] = t($filter->definition['group']) . ':' . t($filter->definition['title']);
    }
  }
  $form['filters'] = array(
    '#type' => 'checkboxes',
    '#options' => $options,
    '#title' => t('Filters'),
    '#description' => t('Choose the filters whose value will be replaced by the one specified here.'),
    '#default_value' => $this->options['filters'],
  );
}