You are here

function user_relationshipsactivity_token_list in Activity 5.3

Same name and namespace in other branches
  1. 5.4 contrib/user_relationshipsactivity/user_relationshipsactivity.module \user_relationshipsactivity_token_list()
  2. 6 contrib/user_relationshipsactivity/user_relationshipsactivity.module \user_relationshipsactivity_token_list()

Token module integration.

File

contrib/user_relationshipsactivity/user_relationshipsactivity.module, line 69

Code

function user_relationshipsactivity_token_list($type = 'all') {
  if ($type == 'user_relationshipsactivity') {
    $tokens['user_relationshipsactivity'] = array(
      'requester-name' => t('Person who issued the request'),
      'requester-id' => t('User id of the person who issued the request'),
      'requester' => t('Link to person who issued the request'),
      'requestee-name' => t('Person to whom the request was issued'),
      'requestee-id' => t('User id of the person to whom the request was issued'),
      'requestee' => t('Link to person who received the request'),
      'relationship' => t('The name of the relationship'),
      'relationship-plural' => t('The plural name of the relationship'),
      'x-is-blah-of-y' => t('Eg: Sam is a fan of Susan'),
      'x-and-y-are-blahs' => t('Eg: Sam and Susan are friends'),
      'the-other-person-name' => t('In any relationship, the name of the person who is not "you". Should only be used in messages visible to the individual user.'),
      'the-other-person-link' => t('In any relationship, a link to the person who is not "you". Should only be used in messages visible to the individual user.'),
    );
    return $tokens;
  }
}