Simple Environment Indicator

Categories

Component ID

2185837

Component name

Simple Environment Indicator

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

9071

Component created

Component changed

Component body

The module works very much like Environment Indicator module (2nd version) with a minimal approach. It requires Drupal core's Toolbar or Admin menu (for Drupal 7 only) module and changes the color of the Toolbar as you like.

It is a simple module that does one thing; to color the Toolbar. It has no configurable user interface. All you need to do is place a line in settings.php such as,

// Drupal 7
$conf['simple_environment_indicator'] = 'DarkRed PRD';

// Drupal 8
$settings['simple_environment_indicator'] = 'DarkRed PRD';
// or
$settings['simple_environment_indicator'] = '@PRD';

First word in the string is the name (or hex value) of the color and the rest will show up in the far left of the Toolbar. If you use @ sign with environment name, predetermined color will be used.

Drupal 8 version supports anonymous users who don't normally have access to Toolbar.

$settings['simple_environment_anonymous'] = TRUE;