diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-10 16:48:39 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-10 16:48:39 +0000 |
commit | d16bead147fc01f96c8a375984c197aee4baec07 (patch) | |
tree | 77d33ff21816b99a7f6084e6e0142f3461028b76 /includes | |
parent | 15b24127b5abb1c66fb5a7579a07e00b571174b0 (diff) | |
download | brdo-d16bead147fc01f96c8a375984c197aee4baec07.tar.gz brdo-d16bead147fc01f96c8a375984c197aee4baec07.tar.bz2 |
#118345 by sun: Make user.module conform to standard presave/insert/update/form_alter hook paradigm.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/form.inc b/includes/form.inc index 53d958b57..282f3a1b1 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -33,8 +33,8 @@ * form for modules automatically. For example: * * @code - * // Display the user registration form. - * $output = drupal_get_form('user_register'); + * // Display the user registration form. + * $output = drupal_get_form('user_register_form'); * @endcode * * Forms can also be built and submitted programmatically without any user input @@ -389,7 +389,7 @@ function form_set_cache($form_build_id, $form, $form_state) { * $form_state['values']['mail'] = 'robouser@example.com'; * $form_state['values']['pass'] = 'password'; * $form_state['values']['op'] = t('Create new account'); - * drupal_form_submit('user_register', $form_state); + * drupal_form_submit('user_register_form', $form_state); * * // Create a new node * $form_state = array(); |