user_cancel_url

Versions
7
user_cancel_url($account)

Generate a URL to confirm an account cancellation request.

See also

user_mail_tokens()

@see user_cancel_confirm()

▾ 1 function calls user_cancel_url()

user_mail_tokens in modules/user/user.module
Token callback to add unsafe tokens for user mails.

Code

modules/user/user.module, line 1993

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.