function social_group_token_info in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.2 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.3 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.4 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.5 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.6 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.7 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 8.8 modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 10.0.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 10.1.x modules/social_features/social_group/social_group.tokens.inc \social_group_token_info()
- 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.'),
];
$social_group['created_entity_link_html'] = [
'name' => t('The (html) link to the created entity.'),
'description' => t('The link to the created entity, can be post or node, will include raw HTML.'),
];
return [
'types' => [
'social_group' => $type,
],
'tokens' => [
'social_group' => $social_group,
],
];
}