You are here

function social_group_token_info in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  2. 8.2 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  3. 8.3 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  4. 8.4 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  5. 8.5 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  6. 8.6 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  7. 8.7 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  8. 8.8 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  9. 10.3.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  10. 10.0.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  11. 10.1.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
  12. 10.2.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()

Implements hook_token_info().

File

modules/social_features/social_group/social_group.tokens.inc, line 15
Builds placeholder replacement tokens for Social Group module.

Code

function social_group_token_info() {
  $type = [
    'name' => t('Social Group'),
    'description' => t('Tokens from the social group module.'),
  ];
  $social_group['content_type'] = [
    'name' => t('The group content type.'),
    'description' => t('The type of the content that is created in the group.'),
  ];
  $social_group['content_url'] = [
    'name' => t('The group content url.'),
    'description' => t('The url to the content that is created in the group.'),
  ];
  return [
    'types' => [
      'social_group' => $type,
    ],
    'tokens' => [
      'social_group' => $social_group,
    ],
  ];
}