You are here

function userpoints_token_values in User Points 6

Implementation of hook_token_values().

File

./userpoints.module, line 244

Code

function userpoints_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'user') {
    $tokens = array(
      'userpoints' => userpoints_get_current_points($object->uid),
    );
    return $tokens;
  }
}