You are here

function _referral_uid2ref in User Referral 6

Same name and namespace in other branches
  1. 5 referral.module \_referral_uid2ref()
  2. 7 referral.module \_referral_uid2ref()
3 calls to _referral_uid2ref()
referral_token_values in ./referral.module
Implementation of hook_token_values().
referral_user in ./referral.module
referral_view in ./referral.module

File

./referral.module, line 534

Code

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