public function entity_views_handler_relationship::options_form in Entity API 7
Slightly modify the options form provided by the parent handler.
Overrides views_handler_relationship::options_form
File
- views/
handlers/ entity_views_handler_relationship.inc, line 24 - Contains the entity_views_handler_relationship class.
Class
- entity_views_handler_relationship
- Relationship handler for data selection tables.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// This won't work with data selector-based relationships, as we only
// inspect those *after* the results are known.
$form['required']['#access'] = FALSE;
// Notify the user of our restrictions regarding lists of entities, if
// appropriate.
if (!empty($this->definition['multiple'])) {
$form['multiple_note'] = array(
'#markup' => t('<strong>Note:</strong> This is a multi-valued relationship, which is currently not supported. ' . 'Only the first related entity will be shown.'),
'#weight' => -5,
);
}
}