You are here

function hook_environment_alter in Environment 7

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

Alter the environments as defined.

This is especially useful to modify the defined allowed operations.

Parameters

array $environments: Defined environment states.

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

File

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

Code

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