Closed (works as designed)
Project:
Modal Frame API
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2011 at 20:03 UTC
Updated:
14 Nov 2013 at 22:35 UTC
Jump to comment: Most recent
Comments
Comment #1
greg.harveyAlright, so actually the bug report stands, but the behaviour is different (something else caused the non-loading thing). What actually happens is when the redirect occurs the theming is no longer properly handled. Noderelationships has it's own issues around this, but I think the theming on redirect belongs here?
Comment #2
Michsk commentedYou might want to take a look at, http://drupal.org/node/802350#comment-4300718 it's for privatemsg, but might be the same with your issue.
Comment #3
greg.harveyHmm, that might help in some cases, but it won't help when a redirect is not because of a form submission (e.g. a drupal_goto() call) ... still, it gives me some ideas, so thank you for cross posting. =)
Comment #4
dsnopekUnfortunately, you're going to have to hook_form_alter() both forms and modify both for use with Modalframe. There's no way for Modalframe to automatically know that it needs to add it's Javascript and submit handler stuff on the 2nd form as well.
If what you actually want to happen is that the modal will close and redirect on the main page, you're going to have to convince UC Node Checkout to use
$form_state['redirect']rather than drupal_goto().