You are here

function _referral_uid2ref in User Referral 5

Same name and namespace in other branches
  1. 6 referral.module \_referral_uid2ref()
  2. 7 referral.module \_referral_uid2ref()
2 calls to _referral_uid2ref()
referral_user in ./referral.module
referral_view in ./referral.module

File

./referral.module, line 541

Code

function _referral_uid2ref($uid) {
  if ($uid) {
    if (is_numeric($uid)) {
      $ref = dechex(_referral_hex_seed() + $uid);
      return $ref;
    }
  }
  return false;
}