Help with Themeing views filter block on Drupal 5.7 - is the attached code the most efficient theming method?
Hi -
First off thanks for the block, it has been very handy for me -
I'm rolling up my sleeves and trying to customize the filter block themes - I've come up the following which seems to work (somewhat) - by wrapping each filter block in its own div tags, I can then theme it via the CSS templates.
I'm new to this whole area of drupal, and was therefore wondering if there is a more efficient / "best practices" method for theming views filter blocks?
Thanks
In my theme's template.php:
/* Change the layout of the Views filter boxes */function phptemplate_views_filterblock($form) { if ($form['#view_name'] == 'view_filter_block_0') { $form['filter2']['#size']=15; $form['filter3']['#size']=15; $form['#prefix']='<div class="views_filter_block_0">'; $form['#suffix']='</div>'; $form['submit']['#value']='New Submit Text'; } // return theme_views_filters ($form); return drupal_render($form); }