Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).function user_logout
Menu callback; logs the current user out, and redirects to the home page.
1 call to user_logout()
- user_menu_site_status_alter in modules/
user/ user.module - Implements hook_menu_site_status_alter().
4 string references to 'user_logout'
- TriggerUserTokenTestCase::testUserTriggerTokenReplacement in modules/
trigger/ trigger.test - Tests a variety of token replacements in actions.
- trigger_test_action_info in modules/
trigger/ tests/ trigger_test.module - Implements hook_action_info().
- trigger_user_logout in modules/
trigger/ trigger.module - Implements hook_user_logout().
- user_menu in modules/
user/ user.module - Implements hook_menu().
File
-
modules/
user/ user.pages.inc, line 303
Code
function user_logout () {
user_logout_current_user ();
drupal_goto ();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.