diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
commit | c912008307dd49b5e3e85c78069153f2f9f70411 (patch) | |
tree | 6e219858505bd38130a7d679488d3a41e689ce1d /modules/system/system.module | |
parent | cfc96df9a7181526cb1c71cf4e39886026c668fe (diff) | |
download | brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.gz brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.bz2 |
#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 31 |
1 files changed, 27 insertions, 4 deletions
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; +} |