function views_filters_populate_handler_filter::options_form in Views filters populate 7
Same name and namespace in other branches
- 6 views/views_filters_populate_handler_filter.inc \views_filters_populate_handler_filter::options_form()
Provide the basic form which calls through to subforms.
If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
Overrides views_handler_filter::options_form
File
- views/
views_filters_populate_handler_filter.inc, line 32 - 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'],
);
}