You are here

function buddylistactivity_token_list in Activity 5.4

Same name and namespace in other branches
  1. 5.3 contrib/buddylistactivity/buddylistactivity.module \buddylistactivity_token_list()

Token module integration. Defines available default tokens.

File

contrib/buddylistactivity/buddylistactivity.module, line 49

Code

function buddylistactivity_token_list($type = 'all') {
  if ($type == 'buddylistactivity') {
    $tokens['buddylistactivity'] = array(
      'possessive' => t('Possessive pronoun indicating whose buddylist ("yours" or "theirs")'),
      'buddylist-link' => t("Link to the user's buddylist"),
      'buddy-uid' => t('User Id of the person who has been added or removed'),
      'buddy' => t('Person who has been added or removed (used for "author" role)'),
      'buddy-all' => t('Person who has been added or removed (used for "all" role)'),
      'buddy-name' => t("The name of the person who has been added or removed"),
    );
    $tokens['buddylistactivity'] += buddylist_translation();
    return $tokens;
  }
}