You are here

function lightgallery_style_plugin::options_validate in Lightgallery 7

Add form validation for options.

Overrides views_plugin_style::options_validate

File

views/lightgallery_style_plugin.inc, line 328
Contains the lightgallery style plugin.

Class

lightgallery_style_plugin
Style plugin to render views as lightgallery instance.

Code

function options_validate(&$form, &$form_state) {
  $style_options = $form_state['values']['style_options'];

  // Flatten style options array.
  $form_state['values']['style_options']['lightgallery'] = $this
    ->flatten_array($style_options);
  parent::options_validate($form, $form_state);
}