From c912008307dd49b5e3e85c78069153f2f9f70411 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 2 Dec 2009 07:28:22 +0000 Subject: =?UTF-8?q?#610234=20by=20G=C3=A1bor=20Hojtsy,=20ksenzee,=20cwgord?= =?UTF-8?q?on7,=20David=5FRothstein,=20seutje,=20marcvangend,=20sun,=20Jos?= =?UTF-8?q?huaRogers,=20markus=5Fpetrux,=20Bojhan,=20Rob=20Loach,=20Everet?= =?UTF-8?q?t=20Zufelt,=20drifter,=20markboulton,=20leisareichelt,=20et=20a?= =?UTF-8?q?l:=20Added=20Overlay=20module=20to=20core,=20which=20shows=20ad?= =?UTF-8?q?ministrative=20pages=20in=20a=20JS=20overlay,=20retaining=20con?= =?UTF-8?q?text=20on=20the=20front-end=20site.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/system/system.module | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 33219edcf..1d4d90ff3 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1082,6 +1082,16 @@ function system_library() { ), ); + // jQuery BBQ plugin. + $libraries['jquery-bbq'] = array( + 'title' => 'jQuery BBQ', + 'website' => 'http://benalman.com/projects/jquery-bbq-plugin/', + 'version' => '1.0.2', + 'js' => array( + 'misc/jquery.ba-bbq.js', + ), + ); + // Contextual links. $libraries['contextual-links'] = array( 'title' => 'Contextual links', @@ -3069,13 +3079,16 @@ function system_page_build(&$page) { '#markup' => theme('system_run_cron_image', array('image_path' => 'system/run-cron-image')), ); } +} - // Find all block regions so they can be rendered. +/** + * Implements hook_page_alter(). + */ +function system_page_alter(&$page) { + // Find all non-empty page regions, and add a theme wrapper function that + // allows them to be consistently themed. $regions = system_region_list($GLOBALS['theme']); - - // Load all region content assigned via blocks. foreach (array_keys($regions) as $region) { - // Don't render empty regions. if (!empty($page[$region])) { $page[$region]['#theme_wrappers'][] = 'region'; $page[$region]['#region'] = $region; @@ -3661,3 +3674,13 @@ function system_build_contextual_links($element) { return $build; } +/** + * Implement hook_admin_paths(). + */ +function system_admin_paths() { + $paths = array( + 'admin' => TRUE, + 'admin/*' => TRUE, + ); + return $paths; +} -- cgit v1.2.3