function theme_commons_events_event_attendees in Drupal Commons 7.3
Theme the event attendees list.
1 theme call to theme_commons_events_event_attendees()
- commons_events_event_attendees_page in modules/
commons/ commons_events/ commons_events.module - Page callback for full event attendee listing.
File
- modules/
commons/ commons_events/ includes/ commons_events.theme.inc, line 53 - Commons Events theme functions.
Code
function theme_commons_events_event_attendees($variables = array()) {
$title = '<p class="commons-events-attendees-title">' . t('Attendees') . '</p>';
$event_nid = $variables['event_nid'];
if (!isset($variables['display']) || $variables['display'] != 'full') {
return $title . views_embed_view('commons_events_event_attendee_list', 'default', $event_nid) . '<p class="commons-events-all-attendees"><a href="/node/' . $event_nid . '/attendees">' . t('See all attendees') . '</a></p>';
}
return $title . views_embed_view('commons_events_event_attendee_list', 'commons_events_full_attendee_list', $event_nid);
}