function sms_user_logout in SMS Framework 5
Same name and namespace in other branches
- 6.2 modules/sms_user/sms_user.module \sms_user_logout()
- 6 modules/sms_user/sms_user.module \sms_user_logout()
1 call to sms_user_logout()
- sms_user_sms_incoming in modules/
sms_user/ sms_user.module - Implementation of hook_sms_incoming().
File
- modules/
sms_user/ sms_user.module, line 508 - Provides integration between the SMS Framework and Drupal users.
Code
function sms_user_logout() {
global $user;
// Destroy the current session:
session_destroy();
$user = drupal_anonymous_user();
}