_batch_next_set
includes/batch.inc, строка 270
- Версии
- 6
_batch_next_set()
Move execution to the next batch set if any, executing the stored form _submit handlers along the way (thus possibly inserting additional batch sets).
Код
<?php
function _batch_next_set() {
$batch =& batch_get();
if (isset($batch['sets'][$batch['current_set'] + 1])) {
$batch['current_set']++;
$current_set =& _batch_current_set();
if (isset($current_set['form_submit']) && ($function = $current_set['form_submit']) && function_exists($function)) {
// We use our stored copies of $form and $form_state, to account for
// possible alteration by the submit handlers.
$function($batch['form'], $batch['form_state']);
}
return TRUE;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии