userprotect_test.module in User protect 7
Testing module for User protect.
File
tests/userprotect_test.moduleView 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
Name | Description |
---|---|
userprotect_test_init | Implements hook_init(). |
userprotect_test_views_api | Implements hook_views_api(). |