function drupal_get_token

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

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

Parameters

$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

drupal_get_hash_salt()

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

... See full list

File

includes/common.inc, line 5077
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());
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.