You are here

function queue_ui_page in Queue UI 7

Same name and namespace in other branches
  1. 6 queue_ui.pages.inc \queue_ui_page()
  2. 7.2 queue_ui.pages.inc \queue_ui_page()

Queue form handler.

1 string reference to 'queue_ui_page'
queue_ui_menu in ./queue_ui.module
Implements hook_menu().

File

./queue_ui.pages.inc, line 10
queue_ui.pages.inc

Code

function queue_ui_page($form, &$form_state) {

  //queue_ui_test(); // @todo remove before prod

  // Initialize.
  if ($form_state['rebuild']) {
    $form_state['input'] = array();
  }
  if (empty($form_state['storage'])) {

    // First step, so start with our overview form.
    $form_state['storage'] = array(
      'step' => 'queue_ui_overview_form',
    );
  }

  // Return the form from the current step.
  $function = $form_state['storage']['step'];
  $form = $function($form, $form_state);
  return $form;
}