You are here

function referral_token_values in User Referral 6

Implementation of hook_token_values().

File

./referral.module, line 570

Code

function referral_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'user') {
    $tokens = array(
      'referral-link' => url('referral/' . _referral_uid2ref($object->uid), array(
        'absolute' => TRUE,
      )),
    );
    return $tokens;
  }
}