function theme_registration_registrant_link in Entity Registration 7.2
Same name and namespace in other branches
- 8.2 registration.module \theme_registration_registrant_link()
Theme handler for registrant links.
Parameters
array $variables: Contains the registrant type and entity.
Return value
string
3 theme calls to theme_registration_registrant_link()
- Registration::buildContent in lib/
registration.entity.inc - Build content for Registration.
- registration_checkin_get_registration_table_rows in modules/
registration_checkin/ registration_checkin.module - Helper function to build the registrant rows of the checkin table.
- registration_registrations_page in ./
registration.module - Page callback: Show a list of registrations for a host entity.
File
- ./
registration.module, line 1034
Code
function theme_registration_registrant_link($variables) {
$registrant_type = $variables['registrant_type'];
$registrant = $variables['registrant'];
if ($registrant_type && $registrant) {
$registrant_label = entity_label($registrant_type, $registrant);
$registrant_uri = entity_uri($registrant_type, $registrant);
return l($registrant_label, $registrant_uri['path']);
}
return t('Anonymous');
}