function user_relationships_api_token_list in User Relationships 6
Implementation of hook_token_list().
File
- user_relationships_api/
user_relationships_api.module, line 338 - User Relationships API. Module shell. @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217
Code
function user_relationships_api_token_list($type = 'all') {
$tokens = array();
if ($type == 'requester') {
$tokens['user_relationships_api'] = array(
'requester' => t('The user who issued the connection request.'),
);
}
elseif ($type == 'relationship') {
$tokens['user_relationships_api'] = array(
'requestee' => t('The user who approved the connnection request.'),
'relationship-name' => t('The relationship name (singular form)'),
);
}
return $tokens;
}