By pmajum1 on
i have to create an application whose logout url will be www.example.com/signout. But in drupal the logout url is www.example.com/logout. I want to show an page not available when an user types an url www.example.com/logout.
How can i do that please provide me solution . I have struck in this issue.
Comments
I definitely do not
I definitely do not recommend that but if you want it
open modules/user/user.module and search for
then replace it with
Reply
I have my custom login module in my site in my module itself i have created a menu item for sign out . but ihave to block logout url in my custom module itself
I absolutely have no idea
I absolutely have no idea what do you mean it would be better if you show us url of your site
I think if you install the
I think if you install the path module, and then go to admin/build/path/add you can create url alias's to any drupal system path, such as /logout, /node/add/page, /admin/build/views etc... Not quite sure why you would want the 404 error on /logout though...
----------------------
Nick Santamaria
logic behind not using logout
Hi,
I am also interested, in not using logout, even though we can have signout -> logout by path and url alias module.
Please explain the concept behind not using it.
Regards, and Have a nice day.
Prachait Saxena
---------------------------
(M) :- +91 9953 200 299
(W) :- http://eotinfotech.com/
hook_menu_alter()
Try this see if this works. But I'm not sure if it's a good idea to disable 'logout'. There might be thing that depend on path 'logout'.
Create a new menu item with
Create a new menu item with title signout and the following path:
logout?destination=your_destination_nodeI've tested it only with active clean urls.