function sweaver_menu_callback_form_submit in Sweaver 6
Same name and namespace in other branches
- 7 sweaver.module \sweaver_menu_callback_form_submit()
Sweaver menu callback form submit.
File
- ./
sweaver.module, line 632 - 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);
}
}