You are here

function nd_emptyregionrender_submit in Node displays 6

Implementation of nd_pluginname_submit().

File

plugins/emptyregionrender.inc, line 37
Plugin to render an empty region.

Code

function nd_emptyregionrender_submit($form, $form_state, &$nd_display_settings) {
  $regions = nd_regions();
  $regions_save = array();
  $build_mode = $form['#build_mode'];
  foreach ($regions as $region => $title) {
    $regions_save['render'][$region] = $form_state['values']['emptyregionrender']['region-render-' . $region];
  }
  $nd_display_settings[$build_mode]['emptyregionrender'] = $regions_save;
}