I have built a site using drupal 7.41. I have added the login form by adding this line in my page.tpl.php “print render($page[‘login_container’]);”.
When user click on the login button I want to show a popup with options “yes” and “no”. only when the user choose “yes” he/she should be logged in. I need change the style of this pop up, that’s why I cannot use jquery window.confirm function.
I went through drupal documentations and found about the function confirm_form. this is what I am trying to do, but not able to.
I created a hook menu and then called the confirm_form fucntion. But I am not able to call this from the login submit button.