From 574afc8e9e633468c019d2eaf344794d69a75dfb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 17 Jul 2010 02:12:36 +0000 Subject: - Patch #615138 by quicksketch, ksenzee, casey: overlay uses () global, but it doesn't exist anymore. --- modules/overlay/overlay.api.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'modules/overlay/overlay.api.php') diff --git a/modules/overlay/overlay.api.php b/modules/overlay/overlay.api.php index 499c157c3..dc056ca98 100644 --- a/modules/overlay/overlay.api.php +++ b/modules/overlay/overlay.api.php @@ -32,13 +32,8 @@ function hook_overlay_parent_initialize() { * within the confines of the overlay. */ function hook_overlay_child_initialize() { - // Use a different theme for content administration pages. - if (arg(0) == 'admin' && arg(1) == 'content') { - if ($theme = variable_get('content_administration_pages_theme', FALSE)) { - global $custom_theme; - $custom_theme = $theme; - } - } + // Add our custom JavaScript. + drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js'); } /** -- cgit v1.2.3