You are here

userprotect_test.module in User protect 7

Testing module for User protect.

File

tests/userprotect_test.module
View source
<?php

/**
 * @file
 * Testing module for User protect.
 */

/**
 * Implements hook_init().
 *
 * Conditionally turns off error reporting.
 */
function userprotect_test_init() {
  if (variable_get('error_reporting', NULL) === 0) {
    error_reporting(0);
  }
}

/**
 * Implements hook_views_api().
 */
function userprotect_test_views_api() {
  return array(
    'api' => 3,
  );
}

Functions