function commerce_backoffice_handler_filter_term_node_tid::options_form in Commerce Backoffice 7
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
- includes/
views/ handlers/ commerce_backoffice_handler_filter_term_node_tid.inc, line 27 - Definition of commerce_backoffice_handler_filter_term_node_tid.
Class
- commerce_backoffice_handler_filter_term_node_tid
- Filter by term id.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['per_vocabulary'] = array(
'#type' => 'checkbox',
'#title' => t('Require all terms to be present'),
'#description' => t('Shows only content that has all of the selected terms.'),
'#default_value' => !empty($this->options['per_vocabulary']),
'#dependency' => array(
'radio:options[type]' => array(
'select',
),
),
);
$form['hierarchy'] = array(
'#type' => 'checkbox',
'#title' => t('Show hierarchy in dropdown'),
'#default_value' => !empty($this->options['hierarchy']),
'#dependency' => array(
'radio:options[type]' => array(
'select',
),
),
);
}