function commons_events_attendee_access in Drupal Commons 7.3
Access callback for showing the Attendees tab.
1 string reference to 'commons_events_attendee_access'
- commons_events_menu in modules/
commons/ commons_events/ commons_events.module - Implements hook_menu().
File
- modules/
commons/ commons_events/ commons_events.module, line 53
Code
function commons_events_attendee_access($event_node) {
if ($event_node->type == 'event' && user_access('view event registration')) {
return TRUE;
}
return FALSE;
}