function social_follow_taxonomy_token_info in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_token_info()
- 10.1.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_token_info()
- 10.2.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_token_info()
Implements hook_token_info().
File
- modules/
social_features/ social_follow_taxonomy/ social_follow_taxonomy.module, line 188 - Contains social_follow_taxonomy.module.
Code
function social_follow_taxonomy_token_info() {
$type = [
'name' => t('Social Follow Taxonomy'),
'description' => t('Tokens from the Social Follow Taxonomy module.'),
];
$social_taxonomy['content_type'] = [
'name' => t('The content type.'),
'description' => t('The type of the content that is related to following term.'),
];
$social_taxonomy['indefinite_article'] = [
'name' => t('A/an article.'),
'description' => t('Adds an article before the content label.'),
];
$social_taxonomy['taxonomy_i_follow'] = [
'name' => t('Taxonomy I follow.'),
'description' => t('Taxonomy term I follow'),
];
$social_taxonomy['post_url'] = [
'name' => t('Post URL'),
'description' => t('Post absolute URL.'),
];
return [
'types' => [
'social_taxonomy' => $type,
],
'tokens' => [
'social_taxonomy' => $social_taxonomy,
],
];
}