You are here

function _referral_ref2uid in User Referral 6

Same name and namespace in other branches
  1. 5 referral.module \_referral_ref2uid()
  2. 7 referral.module \_referral_ref2uid()
1 call to _referral_ref2uid()
referral_get in ./referral.module

File

./referral.module, line 524

Code

function _referral_ref2uid($ref) {
  if ($ref) {
    if (is_numeric('0x' . $ref)) {
      $uid = hexdec($ref) - _referral_hex_seed();
      return $uid;
    }
  }
  return FALSE;
}