You are here

function sweaver_menu_callback_form_submit in Sweaver 7

Same name and namespace in other branches
  1. 6 sweaver.module \sweaver_menu_callback_form_submit()

Sweaver menu callback form submit.

File

./sweaver.module, line 798
Sweaver functions.

Code

function sweaver_menu_callback_form_submit($form, &$form_state) {
  $sweaver_plugin = Sweaver::get_instance()
    ->get_plugin($form['#plugin_name']);
  $callback_submit_function = $form['#callback_method'] . '_submit';
  if (method_exists($sweaver_plugin, $callback_submit_function)) {
    $sweaver_plugin
      ->{$callback_submit_function}($form, $form_state);
  }
}