You are here

function _adsense_get_referral_uid in Google AdSense integration 5

1 call to _adsense_get_referral_uid()
_adsense_choose_client in ./adsense.module

File

./adsense.module, line 1550

Code

function _adsense_get_referral_uid($uid) {
  if (!module_exists('referral')) {
    return $uid;
  }
  $referral_uid = referral_get_user($uid);
  if (!$referral_uid) {

    // User was not referred by an existing user
    return false;
  }
  return $referral_uid;
}