You are here

function registration_checkin_checkin_action_form in Entity Registration 7.2

Form builder for the checkin action form.

Parameters

Registration $registration: The specific registration for which we are providing a select box for. Should be a fully-loaded Registration entity.

Return value

array A complete form array.

1 string reference to 'registration_checkin_checkin_action_form'
registration_checkin_get_registration_table_rows in modules/registration_checkin/registration_checkin.module
Helper function to build the registrant rows of the checkin table.

File

modules/registration_checkin/registration_checkin.module, line 128
Entity Registration registrant checkin workflow and UI for registration.

Code

function registration_checkin_checkin_action_form($form, &$form_state, Registration $registration) {
  $form = array();
  $form['registration_id'] = array(
    '#type' => 'hidden',
    '#value' => $registration->registration_id,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#ajax' => array(
      'callback' => 'registration_checkin_checkin_action_callback',
    ),
    '#value' => t('Check-in'),
  );
  return $form;
}