function menu_node_views_relationship_double::options_form in Menu Node Views 7.2
Default options form that provides the label widget that all fields should have. TODO: check necessity and validity
Overrides views_handler_relationship::options_form
File
- includes/
menu_node_views_relationship_double.inc, line 55
Class
- menu_node_views_relationship_double
- Relationship handler to create a double jointure, ie through 2 tables: from the base table to the final table through the relation table
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['label'] = array(
'#type' => 'textfield',
'#title' => t('Identifier'),
'#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
'#description' => t('Edit the administrative label displayed when referencing this relationship from filters, etc.'),
'#required' => TRUE,
);
$form['required'] = array(
'#type' => 'checkbox',
'#title' => t('Require this relationship'),
'#description' => t('Enable to hide items that do not contain this relationship'),
'#default_value' => !empty($this->options['required']),
);
}