function _MY_MODULE_custom_submit($form, &$form_state) { $form_state['redirect'] = url('thank-you', array('absolute' => true)); }
1 Answer
If what you want is to do a redirect to a thank you page after you handle your form posted data then just add to your function a redirect via a call drupal_goto().
Something like this:
function _MY_MODULE_custom_submit($form, &$form_state) {
// process your form stuff...
drupal_goto('thank-you'); // redirect to page 'thank-you' providing this is one of your drupal pages
}
-
when u login u will get a message tag like "You have 16 unread messages" while clicking on it will redirect to /message . form der i want to change url./something @rtome Commented Apr 6, 2015 at 7:15