You are here

public function SlickViews::options_submit in Slick Views 7.2

Performs some cleanup tasks on the options array before saving it.

Overrides views_plugin::options_submit

File

./SlickViews.inc, line 57
Slick style plugin for the Views module.

Class

SlickViews
Implements a style type plugin for the Views module.

Code

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

  // The form is a #tree, but the expected output is a flattened array.
  if (!empty($options['slick'])) {

    // Pull the fieldset values one level up.
    $options += $options['slick'];
    unset($options['slick']);
  }
}