Hello,
I found this solution to close automodal window on button submit:
Is this the correct way. I am rusty with php and or JS, but basically I want my 'class=automodal' on links to close and reload parent page sitewide.... Is this link structure above the correct way to handle this function?
Comments
Comment #1
back from 7 commentedSorry... Login code should be
<a class="automodal" href="user/login?automodalReload=true">Login</a>Comment #2
gmclelland commentedThat worked, but I have two question for you @joedevdrupal:
1. How do you construct this link with the drupal l function l();
2. Is there a way to also redirect the user to a different page after logging in? Maybe using the Rules module would work?
Comment #3
back from 7 commentedHere is the link im using to edit user profile page... I had to have someone else help me with this.
Hope this helps direct you in the right way. I think Rules would work for redirecting after login.
Comment #4
gmclelland commentedThanks,
Here is the solution for anybody else needing it.
Also for the redirects you might be able to use this module:
http://drupal.org/project/automodal_url
Hope that helps someone,
-Glenn
Comment #5
remydenton commentedThanks for posting your solution Glenn-- it certainly helped me! Your formatting confused me a little bit though (looks like the query is inside the attributes array, which it's not), so I'm posting a slightly adjusted version to help others avoid the same pitfall:
Comment #6
dsnopekSolutions here look good! Closing.