summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-31 16:46:32 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-31 16:46:32 +0000
commita244b45cfbbb22d9087ff0accf83d30e2050a618 (patch)
tree31a78270ff18fc21e8869dd9d54544249d8b34c6 /includes
parentdf78741823ae9fd2d2201b08889b47a4958928c8 (diff)
downloadbrdo-a244b45cfbbb22d9087ff0accf83d30e2050a618.tar.gz
brdo-a244b45cfbbb22d9087ff0accf83d30e2050a618.tar.bz2
#558958 by Frando and moshe weitzman: Add a hook_page_build() that runs before hook_page_alter().
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index ce21e4fa4..ca143d457 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3904,6 +3904,12 @@ function drupal_render_page($page) {
drupal_set_page_content($page);
$page = element_info('page');
}
+
+ // Modules can add elements to $page as needed in hook_page_build().
+ foreach (module_implements('page_build') as $module) {
+ $function = $module . '_page_build';
+ $function($page);
+ }
// Modules alter the $page as needed. Blocks are populated into regions like
// 'sidebar_first', 'footer', etc.
drupal_alter('page', $page);