1 2 3 4 5 6 7 8 9 10 11 12 13 |
function my_module_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'form_id') { //add function to complete to at the end of array $form['actions']['submit']['#submit'][] = 'my_module_form_id_submit_handler'; } } function my_module_form_id_submit_handler($form, &$form_state) { //redirect to this path $form_state['redirect'] = 'some/path/to/redirect/to'; } |
OR :
1 |
$form['#action'] .= '?destination=dest; |
No comments yet.