title: Customize drupal search result page
body: <p>I have created a customized theme called "test", and I am trying to display the search results. </p>
  
  <p>I added the function test_preprocess_search_results() to the template.php (copied the code from drupal page "function template_preprocess_search_results", then copy the search-result.tpl.php from search module to the "test"'s template folder. </p>
  
  <p><code>function test_preprocess_search_results(&amp;$variables) {
        $variables['search_results'] = '';
        if (!empty($variables['module'])) {
             $variables['module'] = check_plain($variables['module']);
        }
        foreach ($variables['results'] as $result) {
             $variables['search_results'] .= theme('search_result', array('result' =&gt; $result, 'module' =&gt; $variables['module']));
        }
         $variables['pager'] = theme('pager', array('tags' =&gt; NULL));
         $variables['theme_hook_suggestions'][] = 'search_results__' . $variables['module'];
  }</code></p>
  
  <p>I am new in drupal, my concern is how can I make the search result display in some certain div  which claimed in my page.tpl.php file? Do something like <code>&lt;?php print render($page['search_result']); ?&gt;</code> in page.tpl.php div ? I am not sure how does the default theme know where to display the search result? Can anyone help thanks</p>
  
  <p>ps: after what I did, and refresh the cache, nothing show up</p>