You are here

public function dsStylesOverrider::plugin_form_submit in Display Suite 6.3

plugin_form_submit().

File

plugins/ds_extension/cssoverrider.inc, line 59

Class

dsStylesOverrider

Code

public function plugin_form_submit($form, $form_state, &$display_settings) {
  $regions = ds_regions();
  $css_save = array();
  $build_mode = $form['#build_mode'];
  foreach ($regions as $region => $title) {
    if ($region != 'disabled') {
      $css_save['class'][$region] = $form_state['values']['cssoverrider']['region-class-' . $region];
      $css_save['inline'][$region] = $form_state['values']['cssoverrider']['region-inline-' . $region];
    }
  }
  $display_settings[$build_mode]['cssoverrider'] = $css_save;
}