function _search_by_page_build_content_blocks in Search by Page 7
Same name and namespace in other branches
- 8 search_by_page.module \_search_by_page_build_content_blocks()
Builds just the content region blocks.
This is a substitute for block_build_page() so that while rendering, we avoid building blocks for regions other than 'content'.
1 string reference to '_search_by_page_build_content_blocks'
- search_by_page_page_content in ./
search_by_page.module - Returns the content portion of the rendered page at the given path.
File
- ./
search_by_page.module, line 548 - Main module file for Drupal module Search by Page.
Code
function _search_by_page_build_content_blocks(&$page) {
if ($blocks = block_get_blocks_by_region('content')) {
$page['content'] = $blocks;
}
drupal_static_reset('block_list');
}