Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

simplei

1,914 sites Security covered
View on drupal.org

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

Version 2.x now supports Gin theme and Drupal 10.

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'] = '#fff/#666 PRD';
// or
$settings['simple_environment_indicator'] = '@PRD';
// accessible colors with #access
$settings['simple_environment_indicator'] = '@PRD#access';

The web color name(s) or hex value(s) are followed by the environment name. You can specify background color only (foreground is white) or foreground/background colors. If you use @ sign with the environment name, the predetermined color will be used.

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

$settings['simple_environment_anonymous'] = TRUE;

If you do not like the default rendering of the environment indicator, you can
set to a string instead of a boolean value, such as,

   $settings['simple_environment_anonymous'] = "body:after { 
     content: \"STAGE\" ;
     position: fixed;
     top: 0;
     left: 0;
     padding: 0.1em 0.5em;
     font-family: monospace;
     font-weight: bold;
     color: #fff;
     background: brown;
     border: 1px solid white; }";

You would not want to display the indicator for anonymous users in production
environment, but nothing will stop you if you have a reason to do so.

Activity

Total releases
2
First release
Jun 2025
Latest release
8 months ago
Release cadence
33 days
Stability
100% stable

Releases

Version Type Release date
3.0.2 Stable Jul 30, 2025
3.0.1 Stable Jun 27, 2025