drupal_get_token

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 drupal_get_token($value = '')

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

Übergabeparameter

$value An additional value to base the token on.

▾ 5 functions call drupal_get_token()

batch_process in includes/form.inc
Processes the batch.
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.
form_set_cache in includes/form.inc
Store a form in the cache.
update_info_page in ./update.php
_batch_page in includes/batch.inc
State-based dispatcher for the batch processing page.

Code

includes/common.inc, line 2596

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen