You are here

function development_environment_init in Development Environment 7

Implements hook_init().

File

./development_environment.module, line 57
Holds hooks for the Development Environment module.

Code

function development_environment_init() {
  if (isset($_SESSION['messages'], $_SESSION['messages']['status'])) {
    for ($i = 0; $i < count($_SESSION['messages']['status']); $i++) {
      if (strpos($_SESSION['messages']['status'][$i], 'A welcome message with further instructions has been e-mailed to the new user ') === 0) {
        unset($_SESSION['messages']['status'][$i]);
      }
    }
  }
}