You are here

function views_plugin_ds_entity_view::options_validate in Display Suite 7.2

Same name and namespace in other branches
  1. 7 views/views_plugin_ds_entity_view.inc \views_plugin_ds_entity_view::options_validate()

Validate view mode type selector.

Overrides views_plugin_row::options_validate

File

views/views_plugin_ds_entity_view.inc, line 299
Provides the Display Suite views entity style plugin.

Class

views_plugin_ds_entity_view
Plugin which defines the view mode on the resulting entity object.

Code

function options_validate(&$form, &$form_state) {
  if (($form_state['values']['row_options']['alternating_fieldset']['alternating'] || $form_state['values']['row_options']['grouping_fieldset']['grouping']) && $form_state['values']['row_options']['advanced_fieldset']['advanced']) {
    form_set_error('advanced', t('You can not have changing/grouping and advanced enabled at the same time'));
  }
}