function _referral_ref2uid in User Referral 7
Same name and namespace in other branches
- 5 referral.module \_referral_ref2uid()
- 6 referral.module \_referral_ref2uid()
Decode and convert back a referral reference code to UID
Parameters
$ref The reference code:
1 call to _referral_ref2uid()
- referral_get in ./
referral.module - Page callback for 'referral'
File
- ./
referral.module, line 759 - The referral module.
Code
function _referral_ref2uid($ref) {
if ($ref) {
if (is_numeric('0x' . $ref)) {
$uid = hexdec($ref) - _referral_hex_seed();
return $uid;
}
}
return FALSE;
}