function apdqc_install_check_boot_exit_hooks in Asynchronous Prefetch Database Query Cache 7
Gets a list of modules that use hook_boot & hook_exit on a cached page hit.
Return value
array index 0 is for hook_boot, index 1 is for hook_exit.
1 call to apdqc_install_check_boot_exit_hooks()
- apdqc_requirements in ./
apdqc.install - Implements hook_requirements().
File
- ./
apdqc.install, line 1740 - Handles APDQC installation and status checks.
Code
function apdqc_install_check_boot_exit_hooks() {
// Get the hooks used.
$hook_boot = module_implements('boot');
$hook_exit = module_implements('exit');
// Allow modules to edit this list.
drupal_alter('apdqc_install_check_boot_exit_hooks', $hook_boot, $hook_exit);
// Add the full function name to the list.
$boot_list = array();
foreach ($hook_boot as $boot) {
$boot_list[] = $boot . '_boot';
}
$exit_list = array();
foreach ($hook_exit as $exit) {
$exit_list[] = $exit . '_exit';
}
return array(
$boot_list,
$exit_list,
);
}