I would like to reformat the search box that is provided when making custom theme.
In every example, I see : print $search_box
I'm wondering if its possible to do: print theme('search_box', $search_box)
I had a similar problem trying to theme menu items and accomplished by doing putting the following in my template.php file:
function phptemplate_links($links, $delimiter = ' | ' ) {
/*I can now use links.tpl.php to style links*/
return _phptemplate_callback('links',array('links'=>$links,'delimiter'=>$delimiter));
But since there is no "theme_search_box" themeable function.... I am stuck...
Looking at the documentation for search_box at http://api.drupal.org/api/function/search_box/5, it states:
Output a search form for the search block and the theme's search box.
Unfortunately, I can't find any documentation how to specify a themed search box..... is this even possible??
Any help is greatly appreciated.
Comments
I have a similar problem :(
I have the same problem and i see no solution yet.
http://api.drupal.org/api/fun
http://api.drupal.org/api/function/theme_search_theme_form/5
__________________________________ ____ ___ __ _ .. .. .
Give a man a fish, and you'll feed him for a day. Teach a man to fish, and he'll buy a funny hat. Talk to a hungry man about fish, and you're a consultant.
- Scott Adams
http://sotak.co.uk
My personal blog | twitter:@sotak