You are here

function persistent_login_erase in Persistent Login 5

Same name and namespace in other branches
  1. 6 persistent_login.pages.inc \persistent_login_erase()
  2. 7 persistent_login.pages.inc \persistent_login_erase()
1 string reference to 'persistent_login_erase'
persistent_login_menu in ./persistent_login.module
Implementation of hook_menu().

File

./persistent_login.module, line 222

Code

function persistent_login_erase($uid = NULL) {
  global $user;
  if (!isset($uid)) {
    $uid = $user->uid;
  }
  if ($uid > 0 && ($user->uid == $uid || user_access('administer Persistent Login'))) {
    _persistent_login_invalidate('erase', 'uid=%d', $uid);
  }
  drupal_goto();
}