You are here

function _spam_user_uid in Spam 5.3

Cache the user id to be sure it's available when we need it.

1 call to _spam_user_uid()
user_spamapi in modules/spam_user.inc
User module _spamapi() hook.

File

modules/spam_user.inc, line 46

Code

function _spam_user_uid($id) {
  static $uid = 0;
  if (isset($id) && is_numeric($id)) {
    $uid = $id;
  }
  return $uid;
}