You are here

function _authcache_form_token_id in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 ajax/authcache.php \_authcache_form_token_id()

Form tokens (prevents CSRF)

form_token_id is a hidden field added by authcache.module's hook_form_alter()

See also

form.inc

File

ajax/authcache.php, line 112
Authcache Ajax Callback (authcache.php)

Code

function _authcache_form_token_id($vars) {
  include_once './includes/common.inc';
  foreach ($vars as $form_token_id) {
    $tokens[$form_token_id] = drupal_get_token($form_token_id);
  }
  return $tokens;
}