Development Environment

Categories

Component ID

2375123

Component name

Development Environment

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

2511

Component created

Component changed

Component body

Module goal

When developing Drupal sites, we are often working in a development environment in which we want behaviors different than we would like on a production environment. An example of this is sending emails - it's often preferable to not send emails from a development environment, as they can end up in our client's email boxes. This is particularly true when there is a production (live) version of the site on the web, as users may receive emails from your development environment, which will be both confusing, and any links to the site within the emails will be unusable by anyone without access to that development environment.

This module aims to provide various settings which are specific to development environments only.

Current functionality

Currently, the module provides the following functionality:

  • Mail Logging - no emails will be sent from the system, and instead will be logged to the Drupal log (watchdog). Whenever a mail is attempted to be sent from the system, users will receive a message informing them that the mail was not sent, and users with 'view site reports' permission will also receive a link to the watchdog. The regular mail stating that a mail was sent is suppressed (note - this message is currently only suppressed in English).

Roadmap

I am interested in adding further functionality to this module that would be beneficial for development environments, including tying in with other contributed modules. If anyone has any suggestions for developing this functionality further, or would like to contribute to this module, please post in the issue queue so we can make this module a complete module to be used in any Drupal development environments.

Disclaimer

While this probably doesn't need to be said, it probably should be said: This module should not be installed on production environments.