You are here

function useractivity_token_list in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/useractivity/useractivity.module \useractivity_token_list()

Token module integration. Defines available default tokens.

File

contrib/useractivity/useractivity.module, line 62

Code

function useractivity_token_list($type = 'all') {
  if ($type == 'useractivity') {
    $tokens['useractivity'] = array(
      'possessive' => t('Possessive pronoun indicating whose user profile page ("your" or "their")'),
      'target-uid' => t('User Id of the user profile viewed if viewing a profile'),
      'target-profile' => t('Person whose user profile was viewed'),
      'target-profile-name' => t('The username of the person whose profile was viewed'),
    );
    return $tokens;
  }
}