Warning message

The service having id "digg_smart_button" is missing, reactivate its module or save again the list of services.

Drupal views exposed filters submit to default site language

Today, and while working on a multilingual Drupal site, I have gone through the problem that my view exposed filters form always submit to the view in the default language of the website.

The exposed filter would always submit to the default site language

To solve this problem, I had to write the following module to alter the exposed form so that it submits to current language.

function mymodule_form_alter(&$form, $form_state, $form_id){
if($form_id=='views_exposed_form') {   
  global $language;
  $form["q"]["#value"]=$language->prefix."/".$form["q"]["#value"]; 
} 
}