This module makes HTTP Referrer tokens available for the current page

Requirements

Token module 7.x

Installation

  1. Unpack the module folder into your modules directory
  2. Go to /admin/modules
  3. Enable the module

Configuration

None - enabling it is enough.

Usage

After enabling the module, the following two tokens are made available:

  • [server:HTTP_REFERER]
  • [server:HTTP_USER_AGENT]

For use in a hidden field using the Webform module, select the hidden type to be
"Hidden Element" rather than "Secure value" to see the correct result submitted.

Credits

Based on code from helmo in the following Token module issue:
https://www.drupal.org/project/token/issues/2021969
Module created by James Forbes Keir
Sponsored by Opencentric Ltd.

Supporting organizations: 
Sponsorship

Project information

Releases