function views_handler_relationship::options_form
3.x views_handler_relationship.inc | views_handler_relationship::options_form(&$form, &$form_state) |
2.x views_handler_relationship.inc | views_handler_relationship::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler::options_form
2 calls to views_handler_relationship::options_form()
- views_handler_relationship_node_term_data::options_form in modules/
taxonomy/ views_handler_relationship_node_term_data.inc - Default options form that provides the label widget that all fields should have.
- views_handler_relationship_translation::options_form in modules/
translation/ views_handler_relationship_translation.inc - Add a translation selector.
3 methods override views_handler_relationship::options_form()
- views_handler_relationship_broken::options_form in handlers/
views_handler_relationship.inc - Default options form that provides the label widget that all fields should have.
- views_handler_relationship_node_term_data::options_form in modules/
taxonomy/ views_handler_relationship_node_term_data.inc - Default options form that provides the label widget that all fields should have.
- views_handler_relationship_translation::options_form in modules/
translation/ views_handler_relationship_translation.inc - Add a translation selector.
File
- handlers/
views_handler_relationship.inc, line 74 - Views' relationship handlers.
Class
- views_handler_relationship
- Simple relationship handler that allows a new version of the primary table to be linked in.
Code
function options_form(&$form, &$form_state) {
$form['label'] = array(
'#type' => 'textfield',
'#title' => t('Label'),
'#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
'#description' => t('The label for this relationship that will be displayed only administratively.'),
);
$form['required'] = array(
'#type' => 'checkbox',
'#title' => t('Require this relationship'),
'#description' => t('If required, items that do not contain this relationship will not appear.'),
'#default_value' => !empty($this->options['required']),
);
}