diff --git a/user_cancel_password_confirm.module b/user_cancel_password_confirm.module index d99d82b88242e5879659ccd20ce4fbc0a3c24bd8..8ca52a01cdc7551626c09c9e9efd886fc78c3135 100644 --- a/user_cancel_password_confirm.module +++ b/user_cancel_password_confirm.module @@ -35,7 +35,10 @@ function user_cancel_password_confirm_form_user_cancel_confirm_form_alter(&$form } /** - * Validation for the current password field on the user cancellation form. + * Form API callback: Validates the password on the user cancellation form. + * + * This function is assigned as an #element_validate callback in + * user_cancel_password_confirm_form_user_cancel_confirm_form_alter(). */ function user_cancel_password_confirm_validate($element, &$form_state, $complete_form) { // Check the current user's password (not the account being deleted). This @@ -48,7 +51,10 @@ function user_cancel_password_confirm_validate($element, &$form_state, $complete } /** - * Replacement submit handler for the user cancellation form. + * Replacement form submission handler for user_cancel_confirm_form(). + * + * @see user_cancel_confirm_form() + * @see user_cancel_password_confirm_form_user_cancel_confirm_form_alter() */ function user_cancel_password_confirm_submit($form, &$form_state) { global $user;