Code for no fieldset theme

5.x-1.2, Code, task, normal, active

I modified the theme function to return a plain list of filter form elements
I'm planning on adding as a config option which output method to chose.
Here's the theme code for plain view:
<?phpfunction theme_views_filterblock($form) {  $view = $form['view']['#value'];  // make the 'q' come first  $output = drupal_render($form['q']);  foreach ($form as $field => $value) {    if (preg_match('/(op|filter)([0-9]+)/', $field, $match)) {      $curcount = $match[2];      $newform[$field] = $value;      $newform[$field]['#weight'] = $curcount; //assign weighting            if (!isset($newform[$field]['#title'])) {        $newform[$field]['#title'] = $view->exposed_filter[str_replace('filter','',$value['#name'])]['label'];      }      if ($newform[$field]['#type']=='textfield') {       $newform[$field]['#attributes'] = array('style'=>'width: 15em;'); //shrink textfield elements      }    }    else {      if ($field == 'submit' || drupal_substr($field, 0, 1) == '#') {        unset($curcount);      }      if (isset($curcount)) {        $newform[$field] = $value;      }      else {        $newform[$field] = $value;      }    }  }    $newform['submit']['#weight'] = 100; //fix submit button weighting to come last      return theme('views_filterblock_output', $newform);}?>