You are here

function _advuser_update_never_accessed in Advanced User 6.3

Same name and namespace in other branches
  1. 7.3 advuser.module \_advuser_update_never_accessed()
1 call to _advuser_update_never_accessed()
advuser_user in ./advuser.module
hook_user implementation

File

./advuser.module, line 457
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function _advuser_update_never_accessed($uid) {
  global $user;
  if ($user->uid != $uid && user_access('administer users')) {
    $sql = 'UPDATE {users} SET access = 0 WHERE uid = %d';
    return db_query($sql, $uid);
  }
}