1 |
582db59d
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Tests calling module_implements() during hook_boot() invocation.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_boot().
|
10 |
|
|
*/
|
11 |
|
|
function boot_test_1_boot() {
|
12 |
|
|
// Calling module_implements during hook_boot() will return "vital" modules
|
13 |
|
|
// only, and this list of modules will be statically cached.
|
14 |
|
|
module_implements('help');
|
15 |
|
|
// Define a special path to test that the static cache isn't written away
|
16 |
|
|
// if we exit before having completed the bootstrap.
|
17 |
|
|
if ($_GET['q'] == 'early_exit') {
|
18 |
|
|
module_implements_write_cache();
|
19 |
|
|
exit();
|
20 |
|
|
}
|
21 |
|
|
} |