Skip to content

Instantly share code, notes, and snippets.

@timcosgrove
Created April 15, 2011 00:44
Show Gist options
  • Save timcosgrove/920906 to your computer and use it in GitHub Desktop.
Save timcosgrove/920906 to your computer and use it in GitHub Desktop.
<?php
// 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);
}
// this could also have been
module_invoke_all('page_build', $page);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment