diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-22 07:50:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-22 07:50:16 +0000 |
commit | a4b833b6deb353d28ad51f9c648061bd0a83c950 (patch) | |
tree | fe74b4150ee226056d14062837bdd95fa9d06962 /modules/user/user.api.php | |
parent | 77af195531d2c91ee6e48fb91b1218ed3844dbae (diff) | |
download | brdo-a4b833b6deb353d28ad51f9c648061bd0a83c950.tar.gz brdo-a4b833b6deb353d28ad51f9c648061bd0a83c950.tar.bz2 |
- Patch #118345 by sun | nedjo, pwolanin, webchick: DIE hook_user_form() + hook_user_register() DIE!
Diffstat (limited to 'modules/user/user.api.php')
-rw-r--r-- | modules/user/user.api.php | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/modules/user/user.api.php b/modules/user/user.api.php index 88d4c0fa1..82895e182 100644 --- a/modules/user/user.api.php +++ b/modules/user/user.api.php @@ -218,38 +218,6 @@ function hook_user_categories() { } /** - * The user account edit form is about to be displayed. - * - * The module should present the form elements it wishes to inject - * into the form. - * - * @param &$edit - * The array of form values submitted by the user. - * @param $account - * The user object on which the operation is being performed. - * @param $category - * The active category of user information being edited. - * @return - * A $form array containing the form elements to display. - */ -function hook_user_form(&$edit, $account, $category = NULL) { - if ($category == 'account') { - $form['comment_settings'] = array( - '#type' => 'fieldset', - '#title' => t('Comment settings'), - '#collapsible' => TRUE, - '#weight' => 4); - $form['comment_settings']['signature'] = array( - '#type' => 'textarea', - '#title' => t('Signature'), - '#default_value' => $edit['signature'], - '#description' => t('Your signature will be publicly displayed at the end of your comments.')); - return $form; - } -} - - -/** * The user account is being added. * * The module should save its custom additions to the user object into the @@ -303,37 +271,6 @@ function hook_user_logout($account) { } /** - * The user account registration form is about to be displayed. - * - * The module should present the form elements it wishes to inject into the - * form. - * - * @param &$edit - * The array of form values submitted by the user. - * @param $account - * The user object on which the operation is being performed. - * @param $category - * The active category of user information being edited. - * @return - * A $form array containing the form elements to display. - */ -function hook_user_register(&$edit, $account, $category) { - if (variable_get('configurable_timezones', 1)) { - $form = array(); - if (variable_get('user_default_timezone', DRUPAL_USER_TIMEZONE_DEFAULT) == DRUPAL_USER_TIMEZONE_SELECT) { - system_user_timezone($edit, $form); - } - else { - $form['timezone'] = array( - '#type' => 'hidden', - '#value' => variable_get('user_default_timezone', DRUPAL_USER_TIMEZONE_DEFAULT) ? '' : variable_get('date_default_timezone', ''), - ); - } - return $form; - } -} - -/** * Modify the account before it gets saved. * * @param &$edit |