Print custom search blocks within content for D7. Use PHP filter and this works with no errors.

<?php
$block = block_load('custom_search_block','2');
$content = _block_get_renderable_array(_block_render_blocks(array($block)));      
$output = drupal_render($content);        
print $output; 
?>

- custom_search_block is the module name
- 2 is the specific search block

Comments

crutch created an issue. See original summary.

crutch’s picture

Issue summary: View changes
fweiss’s picture

FYI in case this doesn't work for you...
Change "custom_search_block" to "custom_search_blocks"
Add "s",