drupal_get_token

5 common.inc drupal_get_token($value = '')
6 common.inc drupal_get_token($value = '')
7 common.inc drupal_get_token($value = '')
8 common.inc drupal_get_token($value = '')

Generates a token based on $value, the user session, and the private key.

Parameters

$value: An additional value to base the token on.

14 calls to drupal_get_token()

File

core/includes/common.inc, line 5136
Common functions that many Drupal modules will need to reference.

Code

function drupal_get_token($value = '') {
  return drupal_hmac_base64($value, session_id() . drupal_get_private_key() . drupal_get_hash_salt());
}
Login or register to post comments