function tokenauth_token_values in Token authentication 6
Same name and namespace in other branches
- 6.2 tokenauth.module \tokenauth_token_values()
Implementation of hook_token_values()
File
- ./
tokenauth.module, line 197
Code
function tokenauth_token_values($type, $object = NULL, $options = array()) {
if ($type == 'user') {
$user = $object;
$tokens['tokenauth-token'] = tokenauth_get_token($object->uid);
return $tokens;
}
}