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 = '')

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

Parameters

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

6 calls to drupal_get_token()

File

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

Code

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