function registration_checkin_menu in Entity Registration 7.2
Implements hook_menu().
File
- modules/
registration_checkin/ registration_checkin.module, line 10 - Entity Registration registrant checkin workflow and UI for registration.
Code
function registration_checkin_menu() {
$items = array();
// UI for checking in registrants.
foreach (registration_get_registration_instances() as $instance) {
$type = $instance['entity_type'];
if (!in_array($type, array(
'registration',
'registration_type',
))) {
// The checkin listing.
$items[$type . '/%entity_object/registrations/checkin'] = array(
'load arguments' => array(
$type,
),
'title' => 'Check-in',
'page callback' => 'registration_checkin_list_page',
'page arguments' => array(
0,
1,
),
'access callback' => 'registration_administer_registrations_access',
'access arguments' => array(
0,
1,
),
'weight' => 15,
'type' => MENU_LOCAL_TASK,
'file' => 'registration_checkin.pages.inc',
);
}
}
return $items;
}