You are here

function skinr_form_submit in Skinr 6

Submit handler.

3 string references to 'skinr_form_submit'
panels_skinr_access_handler_display in modules/panels.skinr.inc
Skinr access handler.
skinr_form_alter in ./skinr.module
Implementation of hook_form_alter().
views_skinr_access_handler_view in modules/views.skinr.inc

File

./skinr.module, line 293

Code

function skinr_form_submit(&$form, &$form_state) {
  $form_id = $form_state['values']['form_id'];
  $skinr_data = skinr_fetch_data();
  foreach ($skinr_data as $module => $settings) {
    if (isset($settings['form'][$form_id])) {
      $form_settings = array_merge(_skinr_fetch_data_defaults('form'), $settings['form'][$form_id]);
      skinr_handler('submit_handler', '', $form_settings['submit_handler'], $form, $form_state, $module, $form_settings);

      // Keep looping, there might be other modules that implement the same form_id.
    }
  }
}