Revision: 48116
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 24, 2011 03:18 by zack
Initial Code
<?php /* * Preprocess page.tpl.php to inject the $search_box variable back into D7. */ function template_preprocess_page(&$variables){ $search_box = drupal_render(drupal_get_form('search_form')); $variables['search_box'] = $search_box; }
Initial URL
Initial Description
Initial Title
Best way to programmatically embed the Search Block in Drupal 7
Initial Tags
drupal
Initial Language
PHP