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.
The following patch adds support of login process modified by Modal forms module.
Similar issues:
#832814: Incompatibility with Dialog API
#1061456: Incompatible with ctools modals/dialog api
--- legal.module.orig 2012-07-14 05:40:38.000000000 +0400
+++ legal.module 2012-12-22 15:10:38.000000000 +0400
@@ -420,6 +420,14 @@
->fetchAllAssoc('uid');
$signatory = array_pop($result);
+ if ((arg(0) === 'modal_forms') && (arg(1) === 'ajax') && (arg(2) === 'login')) {
+ $dest = '';
+ if (isset($query['destination'])) {
+ $dest = '&destination=' . $query['destination'];
+ }
+ $_GET['destination'] = 'legal_accept/' . $signatory->uid . '/' . md5($signatory->name . $signatory->pass . $signatory->login) . $dest;
+ return;
+ }
drupal_goto('legal_accept/' . $signatory->uid . '/' . md5($signatory->name . $signatory->pass . $signatory->login), array('query' => $query));
}
Comment | File | Size | Author |
---|---|---|---|
#19 | 1872630-19.patch | 734 bytes | rpayanm |
#2 | legal-support_modal_forms-1872630-2.patch | 757 bytes | maximpodorov |
legal-modal-forms.patch | 713 bytes | maximpodorov | |
Comments
Comment #1
andypostPlease provide a patch in right format
Comment #2
maximpodorov CreditAttribution: maximpodorov commentedThe same patch in a right format.
Comment #3
andypostGreat! very useful!
Comment #4
dercheffeI have the Issue this patch should fix (I don't know how to put in patches into my drupal installation, so I couldn't test the patch by myself). It would be great, if this patch could be taken in a normal release or in a dev-release. Thanks :)
Comment #5
richH CreditAttribution: richH commentedHi,
did this patch ever make it into a release? I'm having this problem with Modal forms!
Cheers
Rich
Comment #6
zuernBernhard CreditAttribution: zuernBernhard commentedHave the Problem here to. Would love to see this in stable release. Can I help somehow on this ?
Comment #7
zhinio CreditAttribution: zhinio commentedI am having issues too. I would like to see the patch on a stable release too plz.
Comment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis patch no longer applies
Comment #9
andypostComment #10
ashishdalviGood Novice issue for Drupal Mumbai Code sprint #15.
Comment #11
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedComment #12
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedI could apply the patch, so no reroll is needed.
Comment #13
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedComment #14
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedComment #15
ronsnow CreditAttribution: ronsnow commentedWould be great (and appropriate) to have this patch committed to next release. Seems like a lot of time to span not to have incorporated into module.
Comment #16
abarpetia CreditAttribution: abarpetia commentedGiven patch in #2, works for me and I can apply it to dev branch so there is no need of reroll.
Comment #17
Robert Castelo CreditAttribution: Robert Castelo as a volunteer and at Code Positive Services commentedI've added Lightbox2 support in the dev branch.
If anyone still wants modal forms integration take a look at how Lightbox2 is added in the admin form and in the label theme function and provide a patch.
https://www.drupal.org/node/372721#comment-12309650
Comment #18
dtamajon CreditAttribution: dtamajon commented@robert-castelo, I think the link you added is for opening Legal link in a popup, while this issue is about support Legal redirection while the login is openend in a popup with Modal Forms. To reproduce the problem, enable links for login on Modal Forms (with Legal already configured).
About patch #2, it stops working after latest Legal release. I have been trying to get it working with no success. Has anyone an updated patch for the latest Legal version?
Comment #19
rpayanmre-rolled.
Comment #20
stopopol CreditAttribution: stopopol commented#19 doesn't work for me
Instead of an Ajax error I now get "Operation timed out. Please try to log in again."