user_cancel_url

function user_cancel_url

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 ID number.
  • pass: The hashed user password string.
  • login: The UNIX timestamp of the user's last login.

Return value

A unique URL that may be used to confirm the cancellation of the user account.

See also

user_mail_tokens()

user_cancel_confirm()

File

modules/user/user.module, line 2388
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, $account->uid), array('absolute' => TRUE));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_cancel_url/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部