function queue_ui_page_submit in Queue UI 7.2
Same name and namespace in other branches
- 6 queue_ui.pages.inc \queue_ui_page_submit()
- 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'];
$queue_classes = _queue_ui_array_keys_contain($values, 'queues');
$queues = array();
foreach ($queue_classes as $class_name) {
foreach ($values[$class_name] as $queue) {
$queues[] = $queue;
}
}
// Get submitted queues to act on.
$queues = array_filter($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;
}