Generates a URL to confirm an account cancellation request.
object $account: The user account object, which must contain at least the following properties:
array $options: (optional) A keyed array of settings. Supported options are:
A unique URL that may be used to confirm the cancellation of the user account.
function user_cancel_url($account, $options = array()) {
$timestamp = REQUEST_TIME;
$langcode = isset($options['langcode']) ? $options['langcode'] : user_preferred_langcode($account);
$url_options = array(
'absolute' => TRUE,
'language' => language_load($langcode),
);
return url("user/{$account->uid}/cancel/confirm/{$timestamp}/" . user_pass_rehash($account->pass, $timestamp, $account->login), $url_options);
}