You are here

function adsense_managed_theme_registry_alter in Google AdSense integration 7

Same name and namespace in other branches
  1. 6 managed/adsense_managed.module \adsense_managed_theme_registry_alter()

Implements hook_theme_registry_alter().

File

managed/adsense_managed.module, line 70
Displays Google AdSense ads on Drupal pages.

Code

function adsense_managed_theme_registry_alter(&$theme_registry) {
  $mod_path = drupal_get_path('module', 'adsense_managed');

  // Munge on a copy.
  $theme_registry_copy = $theme_registry;
  _theme_process_registry($theme_registry_copy, 'phptemplate', 'theme_engine', 'pow', $mod_path);
  $theme_registry += array_diff_key($theme_registry_copy, $theme_registry);
}