Token Environment

Categories

Component ID

2653696

Component name

Token Environment

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Synopsis

The Token Environment module allows you to specify an environment and use it how a token. This token can be interesting if you need create dynamic paths with environment to save files. Additional you can add this token to body classes.

Requirements

This module requires the following modules:

Usage

Defining environment

You can define the environment in configuration page or in settings.php. You can use the environment that best suits your needs. To define it in settings.php you should add $conf['token_environment'] = {environment} into settings.php.

Managing token

If environment has defined you can use it with Token module. A new Token in Site group will be add, and you can use it with [site:environment] in any site of your Drupal. To use it you can read Token help.
If you checked the "Use to body class" option, this token will be added it automatically.