Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello hello,
I'd like to store the results of drupal_get_destination before the modal is activated. Otherwise there is no way to know the starting page once the modal has started.
Yes, no? It's useful for when you have outgoing links to a MENU_CALLBACK, and you need a drupal_goto().
Comments
Comment #1
nagiek CreditAttribution: nagiek commentedThis seems similar to the problem at #1036962: Edit link destination incorrect when using AJAX-enabled views.
Just a comment: I have no idea where this info would go. Put it in
$_POST
I guess?Comment #2
nagiek CreditAttribution: nagiek commentedThere is a
cancel path
variable that can be set in$form_info
. But this cannot be set automatically. $_POST is the way to go I think.