You are here

function semanticviews_plugin_row_fields::validate in Semantic Views 6

Same name and namespace in other branches
  1. 7 semanticviews_plugin_row_fields.inc \semanticviews_plugin_row_fields::validate()

Validate the view.

File

./semanticviews_plugin_row_fields.inc, line 105
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;
}