You are here

function apdqc_apdqc_install_check_boot_exit_hooks_alter in Asynchronous Prefetch Database Query Cache 7

Implements hook_apdqc_install_check_boot_exit_hooks_alter().

File

./apdqc.module, line 485
Asynchronous Prefetch Database Query Cache module.

Code

function apdqc_apdqc_install_check_boot_exit_hooks_alter(&$hook_boot, &$hook_exit) {

  // Whitelist.
  $boot_whitelist = array(
    'apdqc',
    'httprl',
    'devel',
    'elysia_cron',
    'botcha',
    'logintoboggan',
    'moopapi',
    'variable',
  );
  $exit_whitelist = array(
    'image_effects_text',
    'feeds',
    'rules',
    'cdn',
  );

  // Remove items from the whitelist.
  $hook_boot = array_diff($hook_boot, $boot_whitelist);
  $hook_exit = array_diff($hook_exit, $exit_whitelist);
}