function workbench_access_handler_filter_access::value_form in Workbench Access 7
Options form subform for setting options.
This should be overridden by all child classes and it must define $form['value'].
Overrides views_handler_filter_many_to_one::value_form
See also
options_form()
File
- includes/
workbench_access_handler_filter_access.inc, line 33 - Views integration for Workbench.
Class
- workbench_access_handler_filter_access
- @file Views integration for Workbench.
Code
function value_form(&$form, &$form_state) {
$options = $this
->get_value_options();
$form['access_id'] = array(
'#type' => 'select',
'#title' => t('Sections'),
'#multiple' => TRUE,
'#options' => $options,
'#default_value' => $this->options['access_id'],
'#size' => $this->options['size'],
);
$form['size'] = array(
'#type' => 'select',
'#title' => t('Size'),
'#options' => drupal_map_assoc(array(
1,
5,
10,
20,
50,
)),
'#default_value' => $this->options['size'],
);
}