You are here

function views_ui_change_style_form_validate in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/admin.inc \views_ui_change_style_form_validate()

File

includes/admin.inc, line 3492
admin.inc Provides the Views' administrative interface.

Code

function views_ui_change_style_form_validate($form, &$form_state) {

  // Run it through the handler's submit function.
  $form_state['handler']
    ->options_validate($form['options'], $form_state);
  $plugin = views_get_plugin('style', $form_state['values']['style_plugin']);
  if (!$plugin) {
    form_error($form['style_plugin'], t('Internal error: broken plugin.'));
  }
}