You are here

function overlay_paths_module_implements_alter in Overlay Paths 7

Implements hook_module_implements_alter().

We're going to swap out system module's implementation of hook_custom_theme() and overlay's hook_init() for our own.

File

./overlay_paths.module, line 137
The overlay paths module.

Code

function overlay_paths_module_implements_alter(&$implementations, $hook) {
  switch ($hook) {
    case 'custom_theme':
      if (isset($implementations['overlay_paths'])) {
        unset($implementations['system']);
      }
      break;
    case 'init':
    case 'overlay_parent_initialize':
      if (isset($implementations['overlay_paths'])) {
        unset($implementations['overlay']);
      }
      break;
  }
}