Commit 351522f8 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#640050 by heyrocker: fix code example in drupal_execute() phpdoc; password...

#640050 by heyrocker: fix code example in drupal_execute() phpdoc; password fields should have two string values
parent 2f3115e6
......@@ -276,7 +276,8 @@ function form_get_cache($form_build_id, &$form_state) {
* $form_state = array();
* $form_state['values']['name'] = 'robo-user';
* $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');
* drupal_execute('user_register', $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