drupal_get_token

  1. drupal
    1. 4.7
    2. 5
    3. 6 common.inc
    4. 7 common.inc
Versions
4.7 – 7 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

Related topics

▾ 1 function calls drupal_get_token()

drupal_get_form in includes/form.inc
Processes a form array and produces the HTML output of a form. If there is input in the $_POST['edit'] variable, this function will attempt to validate it, using drupal_validate_form(), and then submit the form using drupal_submit_form().

Code

includes/common.inc, line 1375

<?php
function drupal_get_token($value = '') {
  $private_key = drupal_get_private_key();
  return md5(session_id() . $value . $private_key);
}
?>