function views_plugin_ds_object_view::options_validate in Display Suite 6.3
Same name and namespace in other branches
- 6 views/views_plugin_ds_object_view.inc \views_plugin_ds_object_view::options_validate()
- 6.2 views/views_plugin_ds_object_view.inc \views_plugin_ds_object_view::options_validate()
Validate build mode type selector.
File
- views/
views_plugin_ds_object_view.inc, line 169 - Contains the ds views node style plugin.
Class
- views_plugin_ds_object_view
- Plugin which sets a build mode on the resulting object.
Code
function options_validate($form, &$form_state) {
if (($form_state['values']['row_options']['changing_fieldset']['changing'] || $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'));
}
}