Menhir-effect blog

The only constant in webdevelopment is change

Menhir header


  • Hooking drupal s’ logout button with jquery

    Tuesday, September 30th, 2008

    In a project I am working on, I had to hook the login and logout of drupal, so that an extra action would be taken. More specific to my case: when logging in and/or out of a drupal, the same action should be taken for another session to a second server.

    As drupal login and logout are buttons that are built in Drupal, It had to work around it. The most common solution would be to add an extra class attribute to the links that performed the logout. This class then could be triggered with Jquery to override the logout button to handle things differently. You could think of it as branching the logout task. In stead of going to a different page to perform logout, we call two pages with Jquery’s AJAX methods.

Actionscript 3.0 activity ahah Air AJAX alpha behavior browser caching cck code community content_copy css Design development Drupal embed Facebook fapi fixes Flash Flex fonts Games hangman Heartbeat hyves javascript jquery Library mouse png Pure MVC quick social networks swf tabs taxonomy transparant Twitter UIComponent unicode views
  • Categories

    • Actionscript 3.0 (3)
    • Design (2)
    • Drupal (14)
      • Heartbeat (4)
    • Flash (4)
    • Flex (4)
    • javascript (3)
    • News (1)
    • PHP (2)
    • quick fixes (1)
    • Technology (2)
    • Uncategorized (3)
 

Recent Comments

  • Nice tutorial! Very interesting looking at the source code. but I...
    lam do
  • this is simple and good. but you did not explain...
    local
  • Thanks in advance for your kind and generous input....
    Carolyn R. Sheldon
  • yes, documentation says: "The best way to find documentation for...
    Stalski
  • This is the documentation page: http://heartbeat.menhireffect.be/page/documentation All links in the...
    Jaochoo

home | Entries (RSS) | Comments (RSS) | Menhir
24 queries. 0.225 seconds.