You are here

function userprotect_test_init in User protect 7

Implements hook_init().

Conditionally turns off error reporting.

File

tests/userprotect_test.module, line 13
Testing module for User protect.

Code

function userprotect_test_init() {
  if (variable_get('error_reporting', NULL) === 0) {
    error_reporting(0);
  }
}