diff options
Diffstat (limited to 'modules/simpletest/tests/form_test.module')
-rw-r--r-- | modules/simpletest/tests/form_test.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module index afa08ba89..547de062e 100644 --- a/modules/simpletest/tests/form_test.module +++ b/modules/simpletest/tests/form_test.module @@ -51,9 +51,9 @@ function form_test_menu() { 'type' => MENU_CALLBACK, ); - $items['form_test/drupal_execute_batch_api'] = array( - 'title' => 'BatchAPI Drupal_execute tests', - 'page callback' => 'form_test_drupal_execute_batch_api', + $items['form_test/drupal_form_submit_batch_api'] = array( + 'title' => 'BatchAPI Drupal_form_submit tests', + 'page callback' => 'form_test_drupal_form_submit_batch_api', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); @@ -226,17 +226,17 @@ function _form_test_tableselect_js_select_form($form_state, $action) { } /** - * Page callback for the batch/drupal_execute interaction test. + * Page callback for the batch/drupal_form_submit interaction test. * * When called without any arguments we set up a batch that calls * form_test_batch_callback. That function will submit a form using - * drupal_execute using the values specified in this function. + * drupal_form_submit using the values specified in this function. * * The form's field test_value begins at 'initial_value', and is changed * to 'form_submitted' when the form is submitted successfully. On * completion this function is passed 'done' to complete the process. */ -function form_test_drupal_execute_batch_api($arg = '') { +function form_test_drupal_form_submit_batch_api($arg = '') { // If we're at the end of the batch process, return. if ($arg == 'done') { return t('Done'); @@ -249,15 +249,15 @@ function form_test_drupal_execute_batch_api($arg = '') { // Set the batch and process it. batch_set($batch); - batch_process('form_test/drupal_execute_batch_api/done'); + batch_process('form_test/drupal_form_submit_batch_api/done'); } /** - * Submits form_test_mock_form using drupal_execute using the given $value. + * Submits form_test_mock_form using drupal_form_submit using the given $value. */ function form_test_batch_callback($value) { $state['values']['test_value'] = $value; - drupal_execute('form_test_mock_form', $state); + drupal_form_submit('form_test_mock_form', $state); } /** |