Commit 7624967b authored by Dries's avatar Dries
Browse files

- Patch #640050 by heyrocker: example code for drupal_form_submit() was incorrect.

parent a902f664
...@@ -415,7 +415,8 @@ function form_set_cache($form_build_id, $form, $form_state) { ...@@ -415,7 +415,8 @@ function form_set_cache($form_build_id, $form, $form_state) {
* $form_state = array(); * $form_state = array();
* $form_state['values']['name'] = 'robo-user'; * $form_state['values']['name'] = 'robo-user';
* $form_state['values']['mail'] = 'robouser@example.com'; * $form_state['values']['mail'] = 'robouser@example.com';
* $form_state['values']['pass'] = 'password'; * $form_state['values']['pass']['pass1'] = 'password';
* $form_state['values']['pass']['pass2'] = 'password';
* $form_state['values']['op'] = t('Create new account'); * $form_state['values']['op'] = t('Create new account');
* drupal_form_submit('user_register_form', $form_state); * drupal_form_submit('user_register_form', $form_state);
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment