function views_handler_relationship::options_form

Provide the label widget that all fields should have.

Overrides views_handler::options_form

3 calls to views_handler_relationship::options_form()
views_handler_relationship_groupwise_max::options_form in handlers/views_handler_relationship_groupwise_max.inc
Extends the relationship's basic options.
views_handler_relationship_node_term_data::options_form in modules/taxonomy/views_handler_relationship_node_term_data.inc
Provide 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.
4 methods override views_handler_relationship::options_form()
views_handler_relationship_broken::options_form in handlers/views_handler_relationship.inc
Provide the label widget that all fields should have.
views_handler_relationship_groupwise_max::options_form in handlers/views_handler_relationship_groupwise_max.inc
Extends the relationship's basic options.
views_handler_relationship_node_term_data::options_form in modules/taxonomy/views_handler_relationship_node_term_data.inc
Provide 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 88

Class

views_handler_relationship
Relationship handler, allows a new version of the primary table to be linked.

Code

public 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']),
    );
}