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,194 > # 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'; > if(is_array($_GET["filter$count"])){ > foreach($_GET["filter$count"] as $value){ > $form["filter$count"]['#default_value'][] = $value; > } > } > } > else{ > $form["filter$count"]['#type'] = 'radios'; > // Modify any already existing default vaule from array to string, to comply with 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"]; > } > } > $options = array(); > if(is_object($form["filter$count"]['#options'][0])){ > 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; > } > } > } > else{ > foreach($form["filter$count"]['#options'] as $key => $option){ > $options[$key] = $option; > } > } > $form["filter$count"]['#options'] = $options; > unset($form["filter$count"]['#theme']); > $form["filter$count"]['#prefix'] = '
'; > $form["filter$count"]['#suffix'] = '
'; > } > } > } > watchdog('debug','formtweaker form_alter, -'.$form['#id'].'-:
'.var_export($form,1).'
'); > break; //end case >