In customdestination_form_alter, there is a var dump that displays on pages that have a custom destination. We need to comment out this var_dump in the non-dev release.
Peace,
Brian
/**
* The core of the module, form_alter #redirect value with custom destination
*/
function customdestination_form_alter(&$form, $form_state, $form_id) {
$customdestination = customdestination_load($form_id);
if (!empty($customdestination)) {
$redirect = (strpos($customdestination['dst'], '?')) ? explode('?', $customdestination['dst']) : $customdestination['dst'];
//var_dump($redirect);
$form['#redirect'] = $redirect;
}
}
Comments
Comment #1
flevour commentedWhat a shame. I released 1.6 just now, sorry for the bother everyone.
Thank you Brian!
Francesco
Comment #2
Brian294 commentedThank you for such a fantastic module Francesco! I use customdestination on 100% of the sites that I manage. :-)
Peace,
Brian
Owner, yadaDROP LLC
http://yadadrop.com
Comment #3
flevour commentedGlad to hear that Brian, I really appreciate your comment.
Have fun and happy hacking,
Francesco