Production
Component ID
1897948
Component name
Production
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
1196
Component created
Component changed
Component body
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
