function user_logout
user_logout()
Menu callback; logs the current user out, and redirects to the home page.
File
- modules/user/user.pages.inc, line 197
- User page callback file for the user module.
Code
function user_logout() { user_logout_current_user(); drupal_goto(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.pages.inc/function/user_logout/7.x