You are here

function user_badges_token_values in User Badges 6

Same name and namespace in other branches
  1. 6.2 user_badges.module \user_badges_token_values()

Implements hook_token_values(). @TODO: Add tokens for Submitted By module?

File

./user_badges.module, line 1275
@brief User Badges module file

Code

function user_badges_token_values($type, $object = NULL) {
  if ($type == 'userbadge') {
    $badge = $object;
    $tokens['userbadge-name'] = $badge->name;
    $tokens['userbadge-bid'] = $badge->bid;
    return $tokens;
  }
}