How to Edit Content in $content['main'] I am maintaining a Drupal 7 site that was developed by another developer and I'm trying to
 move the search field on the results page to appear under the H1.  Currently the site has a search field that appears at the very top (above the top navigation) > after the user submits a keyword in the search field, they are taken to the Results page which has a second search field that appears right above the H1.  

I know that the second search field on the Results page is within the $content['main'], but I can't seem to locate how to move the search field to save my life!  The script in the template.tpl.php file that contains the $content['main'] is pasted below.  I've checked the MySQL database (field_revision, field_data, &amp; node tables), Structure (Panels, Mini Panels, Views, Pages, &amp; Blocks), and content types -- all to no avail.

&lt;?php if (!empty($content['main'])): ?&gt;
&lt;?php print render($content['main']); ?&gt;

&lt;? // debugging  ?&gt;
&lt;pre&gt;&lt;?php print_r($node); ?&gt;&lt;/pre&gt;
&lt;?php
print '&lt;div&gt;var_dump &lt;br/&gt;';
var_dump($content); 
print '&lt;/div&gt;';
?&gt;
&lt;? // debugging  ?&gt;


Output from debugging script that was pasted below the $content['main']

var_dump
array(5) { ["search"]=&gt; string(798) " 

" ["header"]=&gt; string(0) "" ["main"]=&gt; string(4492) "


I've looked into Where does Drupal store the content of a node&#39;s body? but haven't found the search field in any of the suggestion yet.
The header normally comes from the page, and the search field comes from the form.
In order to place the h1 under the search field I'm usually using the next steps:


Hide the title on the search results page using the theme_preprocess_page
Use the search-results.tpl.php to insert the title under the search field