Skip navigation
Help

drupal_get_token

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

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

Parameters

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

17 calls to drupal_get_token()

File

drupal/includes/common.inc, line 4870
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());
}