function spaces_handler_filter_spaces_current::operator_form in Spaces 6.2
Same name and namespace in other branches
- 6.3 includes/spaces_handler_filter_spaces_current.inc \spaces_handler_filter_spaces_current::operator_form()
- 6 includes/spaces_handler_filter_spaces_current.inc \spaces_handler_filter_spaces_current::operator_form()
- 7.3 includes/spaces_handler_filter_spaces_current.inc \spaces_handler_filter_spaces_current::operator_form()
- 7 includes/spaces_handler_filter_spaces_current.inc \spaces_handler_filter_spaces_current::operator_form()
Provide a form for setting the operator.
This may be overridden by child classes, and it must define $form['operator'];
File
- includes/
spaces_handler_filter_spaces_current.inc, line 38
Class
- spaces_handler_filter_spaces_current
- Spaces view filter handler.
Code
function operator_form(&$form, &$form_state) {
$options = $this
->operator_options();
if (!empty($options)) {
$form['operator'] = array(
'#type' => 'select',
'#title' => t('When not in a space'),
'#default_value' => $this->operator,
'#options' => $options,
'#description' => t('Helpful if you want to use this view both inside and out of spaces.'),
);
}
}