function social_event_token_info in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 8.4 modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 8.5 modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 8.6 modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 8.8 modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 10.3.x modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 10.0.x modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 10.1.x modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
- 10.2.x modules/social_features/social_event/social_event.tokens.inc \social_event_token_info()
Implements hook_token_info().
File
- modules/
social_features/ social_event/ social_event.tokens.inc, line 15 - Builds placeholder replacement tokens for Social Event module.
Code
function social_event_token_info() {
$type = [
'name' => t('Social Event'),
'description' => t('Tokens from the Social Event module.'),
];
$social_event['event_iam_organizing'] = [
'name' => t('URL of the Event I organize.'),
'description' => t('URL of the Event I organize.'),
];
$social_event['enrolled_user'] = [
'name' => t('Username of user enrolled to the event.'),
'description' => t('Username of user enrolled to the Event. Can be an anonymous user.'),
];
$social_event['enrolled_event_url'] = [
'name' => t('Url of the Event a user enrolled to.'),
'description' => t('Url of the Event a user enrolled to.'),
];
return [
'types' => [
'social_event' => $type,
],
'tokens' => [
'social_event' => $social_event,
],
];
}