Add programmatically exposed filter to view without removing the existing ones I want to add an exposed filter to a view which contains already exposed filters but without altering them.
When I add the following code it messes up  the exposed filters from the view and only the programmatically coded exposed filter works correctly.

I use the following code:

function music_m_views_pre_view(&amp;$view, &amp;$display_id = null , &amp;$args = null) 
{
$filter = $view-&gt;display['default']-&gt;handler-&gt;options['filters'];       
$current_latter = arg(1);      
$filter['field_last_name_value']['value'] = $current_latter;

$view-&gt;display_handler-&gt;override_option('filters', $filter);
}
The hook function used was wrong. I had to use hook_views_pre_build(&amp;$view)
so I have now the following (and the other exposed filters don't get messed up):

 function music_m_views_pre_build(&amp;$view) {

$view_filters = $view-&gt;display['default']-&gt;handler-&gt;options['filters']; 

 $current_latter = arg(1); 

 if($current_latter)
 {  
    $view_filters['title']['value'] = $current_latter;  

 } 
$view-&gt;display[$view-&gt;current_display]-&gt;handler-&gt;handlers['filter']['title']-&gt;value = $current_latter;


}