| 7 user.module | user_cancel_url($account) |
| 8 user.module | user_cancel_url($account) |
Generates a URL to confirm an account cancellation request.
Parameters
object $account: The user account object, which must contain at least the following properties:
- uid: The user uid number.
- pass: The hashed user password string.
- login: The user login name.
Return value
A unique URL that may be used to confirm the cancellation of the user account.
See also
1 call to user_cancel_url()
File
- modules/
user/ user.module, line 2307 - Enables the user registration and login system.
Code
function user_cancel_url($account) {
$timestamp = REQUEST_TIME;
return url("user/$account->uid/cancel/confirm/$timestamp/" . user_pass_rehash($account->pass, $timestamp, $account->login), array('absolute' => TRUE));
}
Login or register to post comments