batch_example_simple_form_submit
developer/examples/batch_example.module, строка 83
- Версии
- 6
batch_example_simple_form_submit($form, &$form_state)
Код
<?php
function batch_example_simple_form_submit($form, &$form_state) {
$values =& $form_state['values'];
$function = 'batch_example_'. $values['batch'];
$batch = $function();
batch_set($batch);
// Redirection takes place as usual.
$form_state['redirect'] = 'batch_example/example_2';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии