function eva_plugin_display_entity::validate in EVA: Entity Views Attachment 7
Make sure the display and all associated handlers are valid.
Return value
Empty array if the display is valid; an array of error strings if it is not.
Overrides views_plugin_display::validate
File
- ./
eva_plugin_display_entity.inc, line 273
Class
- eva_plugin_display_entity
- The plugin that handles entity-attached views.
Code
function validate() {
$errors = parent::validate();
$entity_type = $this
->get_option('entity_type');
if (empty($entity_type)) {
$errors[] = t('Display @display must have an entity type selected.', array(
'@display' => $this->display->display_title,
));
}
return $errors;
}