function registration_token_info in Entity Registration 7.2
Same name and namespace in other branches
- 8.2 registration.module \registration_token_info()
- 8 registration.module \registration_token_info()
- 7 registration.module \registration_token_info()
Implement hook_token_info().
File
- ./
registration.module, line 1406
Code
function registration_token_info() {
$type = array(
'name' => t('Registration'),
'description' => t('Tokens related to individual Registrations.'),
'needs-data' => 'registration',
);
$registration['entity'] = array(
'name' => t("Registration Host Entity"),
'description' => t("The host entity for the registration."),
);
$registration['registrant'] = array(
'name' => t("Registrant Entity"),
'description' => t("The entity the registration is for."),
);
return array(
'types' => array(
'registration' => $type,
),
'tokens' => array(
'registration' => $registration,
),
);
}