You are here

function _spam_content_user_uid in Spam 6

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

1 call to _spam_content_user_uid()
user_spamapi in content/spam_content_user.inc
User module _spamapi() hook.

File

content/spam_content_user.inc, line 48
Include file for integration with the user system.

Code

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