You are here

function queue_ui_page_submit in Queue UI 6

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

File

./queue_ui.pages.inc, line 28
queue_ui.pages.inc

Code

function queue_ui_page_submit($form, &$form_state) {
  $values = $form_state['values'];

  // Get submitted queues to act on.
  $queues = array_filter($values['queues']);
  if (empty($queues)) {

    // Nothing to do.
    return;
  }
  if (isset($values['step_submit'])) {

    // Pass off to step submit handler.
    $function = $values['step_submit'];
    $function($form, $form_state, $queues);
  }
  return;
}