Please use the following snippet for the custom redirect.
function module_form_alter(&$form,$form_state,$form_id){
if (isset($form['#node']) && $form['#node']->type .'_node_form' == $form_id) {
$form['buttons']['submit']['#submit'][] = 'module_redirect_handler';
}
}
function module_redirect_handler($form, &$form_state) {
if ($form_state['nid']) {
$form_state['redirect'] = 'admin/content/node';
}
}

Share Your Answers