function drupal_get_token

cis7 drupal_get_token($value = '')
cle7 drupal_get_token($value = '')
elmsmedia7 drupal_get_token($value = '')
icor7 drupal_get_token($value = '')
meedjum_blog7 drupal_get_token($value = '')
mooc7 drupal_get_token($value = '')

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


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

Return value

string A 43-character URL-safe token for validation, based on the user session ID, the hash salt provided from drupal_get_hash_salt(), and the 'drupal_private_key' configuration variable.

See also


35 calls to drupal_get_token()
admin_menu_links_icon in sites/all/modules/ulmus/admin_menu/
Build icon menu links; mostly containing maintenance helpers.
aggregator_view in modules/aggregator/
Displays the aggregator administration page.
batch_load in includes/
Loads a batch from the database.
batch_process in includes/
Processes the batch.
clone_token_to_arg in sites/all/modules/ulmus/node_clone/clone.module

... See full list


includes/, line 5077
Common functions that many Drupal modules will need to reference.


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



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.