Place tag before input text field in search-block-form I would like to add an li tag infront of the input field in the search-block.
Should be possible with hook_form_alter. I've already printed the array containing the search-block-form, but I couldn't find input type text to add a prefix value.

function myTheme_form_alter(&amp;$form, &amp;$form_state, $form_id) {
   if ($form_id == 'search_block_form') {
     print_r($form); -&gt; no input type text here to add prefix to.
   }
}
The "input" type you are referring to, is actually the element defined inside the array $form['search_block_form'],  of #type 'textfield'. That's the element that provides the input field when rendered. 

In order to add a &lt;li&gt; tag in front and back of this input field, try using the properties   #prefix and #suffix. Also I would suggest creating a custom module for this, avoid using it inside the template.php file. Try the following (haven't tested it myself, though).

function myModule_form_alter(&amp;$form, &amp;$form_state, $form_id) {
   if ($form_id == 'search_block_form') {
     $form['search_block_form']['#prefix'] = '&lt;li&gt;';
     $form['search_block_form']['#suffix'] = '&lt;/li&gt;';
   }
}