Related topics
- Form generation
- Functions to enable output of HTML forms and form elements.
File
- includes/form.inc, line 200
Code
function drupal_submit_form($form_id, $form, $callback = NULL) {
global $form_values;
$default_args = array($form_id, &$form_values);
if (isset($form['#submit'])) {
foreach ($form['#submit'] as $function => $args) {
if (function_exists($function)) {
$args = array_merge($default_args, (array) $args);
$redirect = call_user_func_array($function, $args);
if (isset($redirect)) {
$goto = $redirect;
}
}
}
}
return $goto;
}
Login or
register to post comments