This project is not covered by Drupal’s security advisory policy.

Description

Simple module with one setting field: website hostname. If you have many versions of website (dev, test, production) you can save production version hostname in Drupal variables and other modules can check if you are on production server or other version, and act differently.

Install this module only if some other module tells you to or if you want to use it in your custom module.

Modules that using Production module:
- http://drupal.org/project/devdata
- reroute_mail + http://drupal.org/node/1897996

How to use in your module

  if (module_exists('production')) {
      if (production_is_active()) {
        $is_production_version = TRUE;
      }
      else {
        $is_production_version = FALSE;
      }
    }
  else {
      $is_production_version = FALSE;
  }
// do something with variable $is_production_version 

Sponsorship

This project is sponsored by Droptica - Experts in Enterprise Drupal Development

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution No further development
    No longer developed by its maintainers.
  • chart icon2 sites report using this module
  • Created by grzegorz.bartman on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases