http://www.golrleaf.com/my_application/my_path.
[ author ]
[development] Registry
drupal at dave-cohen.com
to wrong URL. In my case, I"m trying to the user to send the user is submitted, drupal_goto is sent to a I need to send the user to set $form["destination"] via hook_form_alter. When the form is an external URL after the form submit. My approach is called. In drupal_goto, my destination gets badly munged and [development] drupal_goto an external destination But the user gets sent instead to [development] drupal_goto an external destination drupal_goto. It looks like this: if (isset($_REQUEST['destination'])) { extract(parse_url(urldecode($_REQUEST['destination']))); } else if (isset($_REQUEST['edit']['destination'])) { extract(parse_url(urldecode($_REQUEST['edit']['destination']))); } $url =x($path, $query, $fragment, TRUE); The use of the URL are dropped. Is there even a workaround for me without patching core? Thanks, -Dave of reason why parse_url is there a The reason for this is used here? Why not something closer to: if (isset($_REQUEST['destination'])) $url =x($_REQUEST['destination']) else ... And is at the code nearly impossible to understand, unless you find perl intuitive, but I digress... During extract() $path, $query, and $fragment all get set. So does $scheme, $host, $user and $pass. But drupal_goto does nothing with the start of extract() makes the latter variables, and in my case important parts
More information about