function semanticviews_plugin_row_fields::validate in Semantic Views 7
Same name and namespace in other branches
- 6 semanticviews_plugin_row_fields.inc \semanticviews_plugin_row_fields::validate()
Validate the view.
Overrides views_plugin::validate
File
- ./
semanticviews_plugin_row_fields.inc, line 111 - Contains the semantic row style plugin.
Class
- semanticviews_plugin_row_fields
- The semantic 'fields' row plugin
Code
function validate() {
$errors = parent::validate();
$display_handler = $this->display->handler;
if (!$display_handler
->is_defaulted('fields') && $display_handler
->is_defaulted('row_plugin')) {
$errors[] = t('Display "@display" overrides fields and must also override the row style plugin.', array(
'@display' => $this->display->display_title,
));
}
return $errors;
}