function system_handle_logout
Search API
6.x system.module | system_handle_logout() |
4.x system.module | system_handle_logout() |
5.x system.module | system_handle_logout() |
File
- modules/
system/ system.module, line 1337
Code
function system_handle_logout() {
global $user;
$name = $user->name;
$uid = $user->id;
// Check for hook_user_logout
$modules = modules_implement_hook("user_logout");
foreach ($modules as $module) {
call_user_func($module . '_user_logout');
}
// Finish up logging out.
$_SESSION ["fp_logged_in"] = FALSE;
$_SESSION ["fp_user_object"] = FALSE;
session_destroy();
session_start();
watchdog("logout", "@user has logged out", array("@user" => "$name ($uid)"));
fp_add_message(t("You have been logged out of FlightPath."));
fp_goto("<front>");
}