You are here

public function dsEmptyRegionRender::plugin_form_submit in Display Suite 6.3

plugin_form_submit().

File

plugins/ds_extension/emptyregionrender.inc, line 51

Class

dsEmptyRegionRender

Code

public function plugin_form_submit($form, $form_state, &$display_settings) {
  $regions = ds_regions();
  $regions_save = array();
  $build_mode = $form['#build_mode'];
  foreach ($regions as $region => $title) {
    if (isset($form_state['values']['emptyregionrender']['region-render-' . $region])) {
      $regions_save['render'][$region] = $form_state['values']['emptyregionrender']['region-render-' . $region];
    }
  }
  $display_settings[$build_mode]['emptyregionrender'] = $regions_save;
}