1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
5 – 8 drupal_get_token($value = '')

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


$value An additional value to base the token on.

▾ 13 functions call drupal_get_token()

batch_load in includes/batch.inc
Loads a batch from the database.
batch_process in includes/form.inc
Processes the batch.
comment_links in modules/comment/comment.module
Helper function, build links for an individual comment.
dashboard_admin in modules/dashboard/dashboard.module
Dashboard page callback.
drupal_prepare_form in includes/form.inc
Prepares a structured form array by adding required elements, executing any hook_form_alter functions, and optionally inserting a validation token to prevent tampering.
drupal_process_form in includes/form.inc
Processes a form submission.
drupal_theme_initialize in includes/theme.inc
Initialize the theme system by loading the theme.
drupal_valid_token in includes/common.inc
Validate a token based on $value, the current user session and private key.
form_set_cache in includes/form.inc
Store a form in the cache.
overlay_disable_message in modules/overlay/overlay.module
Returns a renderable array representing a message for disabling the overlay.
shortcut_preprocess_page in modules/shortcut/shortcut.module
Implements hook_preprocess_page().
system_themes_page in modules/system/system.admin.inc
Menu callback; displays a listing of all themes.
update_info_page in ./update.php


includes/common.inc, line 4874

function drupal_get_token($value = '') {
  return drupal_hmac_base64($value, session_id() . drupal_get_private_key() . drupal_get_hash_salt());