You are here

function apigee_edge_teams_token_info_alter in Apigee Edge 8

Implements hook_token_info_alter().

File

modules/apigee_edge_teams/apigee_edge_teams.tokens.inc, line 32
Implements tokens for apigee_edge_teams module.

Code

function apigee_edge_teams_token_info_alter(&$info) {
  if (!empty($info['tokens']['team_invitation'])) {
    $info['tokens']['team_invitation']['team_name'] = [
      'name' => t('Team name'),
      'description' => t('The name of the team.'),
      'type' => 'team_invitation',
    ];
    $info['tokens']['team_invitation']['url_accept'] = [
      'name' => t('Accept URL'),
      'description' => t('The invitation accept url.'),
      'type' => 'team_invitation',
    ];
    $info['tokens']['team_invitation']['url_decline'] = [
      'name' => t('Decline URL'),
      'description' => t('The invitation decline url.'),
      'type' => 'team_invitation',
    ];
    $info['tokens']['team_invitation']['url_register'] = [
      'name' => t('Registration URL'),
      'description' => t('A url to register an account with a redirect to accept the team invitation.'),
      'type' => 'team_invitation',
    ];
    $info['tokens']['team_invitation']['expiry_days'] = [
      'name' => t('Expiry days'),
      'description' => t('The expiry days for the team invitation.'),
      'type' => 'team_invitation',
    ];
  }
}