function tokenauth_token_values in Token authentication 6.2
Same name and namespace in other branches
- 6 tokenauth.module \tokenauth_token_values()
Implementation of hook_token_values()
File
- ./
tokenauth.module, line 191
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;
}
}