1 views_handler_filter_node_tnid.inc | views_handler_filter_node_tnid::operator_form(&$form, &$form_state) |
Provide simple boolean operator
Overrides views_handler_filter::operator_form
File
- core/
modules/ translation/ views/ views_handler_filter_node_tnid.inc, line 25 - Definition of views_handler_filter_node_tnid.
Class
- views_handler_filter_node_tnid
- Filter by whether the node is the original translation.
Code
function operator_form(&$form, &$form_state) {
$form['operator'] = array(
'#type' => 'radios',
'#title' => t('Include untranslated content'),
'#default_value' => $this->operator,
'#options' => array(
1 => t('Yes'),
0 => t('No'),
),
);
}