function views_handler_filter_node_tnid::operator_form
Provide simple boolean operator.
Overrides views_handler_filter::operator_form
File
-
modules/
translation/ views_handler_filter_node_tnid.inc, line 36
Class
- views_handler_filter_node_tnid
- Filter by whether the node is the original translation.
Code
public 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'),
),
);
}