Index: formtweaker.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/formtweaker/formtweaker.module,v
retrieving revision 1.8
diff -r1.8 formtweaker.module
3c3
< // $Name:  $
---
> // $Name: DRUPAL-5--1-1 $
144a145,196
>     # Exposed views filters:
>     case 'views_filters':
>       if (isset($form['view']['#value']->exposed_filter) ) {
>         $view = $form['view']['#value'];
>         foreach ($view->exposed_filter as $count => $expose) {
>           if (is_numeric($count)) {
>             if ($form["filter$count"]['#multiple']) {
>               $form["filter$count"]['#type'] = 'checkboxes';
>               $options = array();
>               foreach($form["filter$count"]['#options'] as $option){
>                 $option = $option->option;
>                 if(is_array($option)){
>                   $key = implode('',array_keys($option));
>                   $option = implode('', $option);
>                   $options[$key] = $option;
>                 }
>               }
>               $form["filter$count"]['#options'] = $options;
>               if(is_array($_GET["filter$count"])){
>                 foreach($_GET["filter$count"] as $value){
>                   $form["filter$count"]['#default_value'][] = $value;
>                 }
>               }
>             }
>             else{
>               $form["filter$count"]['#type'] = 'radios';
>               $options = array();
>               foreach($form["filter$count"]['#options'] as $option){
>                 $option = $option->option;
>                 if(is_array($option)){
>                   $key = implode('',array_keys($option));
>                   $option = implode('', $option);
>                   $options[$key] = $option;
>                 }
>               }
>               $form["filter$count"]['#options'] = $options;
>               // Modify any already existing default vaule from array to string, to comply woth radios:
>               if(is_array($form["filter$count"]['#default_value'])){
>                 $form["filter$count"]['#default_value'] = $form["filter$count"]['#default_value'][0];
>               }
>               if(isset($_GET["filter$count"])){
>                 $form["filter$count"]['#default_value'] = $_GET["filter$count"];
>               }
>             }
>             unset($form["filter$count"]['#theme']);
>             $form["filter$count"]['#prefix'] = '<div class="exposed-filters">';
>             $form["filter$count"]['#suffix'] = '</div>';
>           }
>         }
>       }
>       break; //end case
>       
