Closed (fixed)
Project:
Drupal core
Version:
6.2
Component:
user.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2011 at 10:31 UTC
Updated:
25 Oct 2018 at 12:09 UTC
Jump to comment: Most recent
Comments
Comment #1
dejavu_007 commentedYou can pop up a confirm dialog box using jquery code. Add jquery using drupal_add_js in template.php.
I am not sure if this is the right way to do it.
Anybody, please post if there is any modules that can do it or if there is a better way to do it.
Thanks..
Comment #2
joachim commentedWouldn't be hard to have a custom module take over the /logout path and put a confirmation form at that path.
Comment #3
dejavu_007 commentedI am new to drupal, so I am not sure whether this module is right. Please correct me if it is wrong.
Here is how i made a custom module.
loginconfirm.info :
loginconfirm.module :
Comment #4
joachim commentedI would use a single submit handler for both buttons, ie don't set #submit, and look in $form_values to see which button was clicked.
But apart from that, looks fine. Very good for a newbie, in fact! :D
You can create a sandbox project for that code if you like, btw.
Comment #5
tanu487 commentedHey thnks :) will implement this and report asap..
Comment #6
tanu487 commentedHey dejavu_007,Thanks a tonne for the help! It works wonders for me..thanks..
Comment #7
tanu487 commentedComment #8
dejavu_007 commentedThanks joachim, for all the help.
Here are the changes made and has used a single submit handler. I hope this what you meant.
Comment #9
Partha Sarathi commentedHi this is nice for D6. Can anyone suggest the same solution for D7? Thanks for advance.