Token Values

You may use special tokens in specified fields that will be replaced with dynamic values.

Basic Tokens

  • %username - The name of the user if logged in. Blank for anonymous users.
  • %useremail - The e-mail address of the user if logged in. Blank for anonymous users.
  • %ip_address - The IP address of the user.
  • %site - The name of the site (i.e. Drupal Training)
  • %date - The current date, formatted according to the site settings.

Node Tokens

  • %nid - The node ID.
  • %title - The node title.

Special Tokens

  • %profile[key] - Any user profile field or value, such as %profile[name] or %profile[profile_first_name]
  • %get[key] - Tokens may be populated from the URL by creating URLs of the form http://example.com/my-form?foo=bar. Using the token %get[foo] would print "bar".
  • %post[key] - Tokens may also be populated from POST values that are submitted by forms.

In addition to %get and %post, the following super tokens may be used, though only with logged-in users: %server, %cookie, and %request. For example %server[HTTP_USER_AGENT] or %session[id].