You are here

function hook_environment_alter in Environment 6

Same name and namespace in other branches
  1. 7 environment.api.php \hook_environment_alter()

Alter the environments as defined.

This is especially useful to modify the defined allowed operations.

Parameters

$environments: Defined environment states.

1 invocation of hook_environment_alter()
environment_load in ./environment.module
Fetches all available environments.

File

./environment.api.php, line 109
Hooks provided by Environment.

Code

function hook_environment_alter(&$environments) {
  $environments['production'] = t('Production site');
}