Override exposed filter dropdown values I have exposed filter of taxonomy with dropdown. I want to override the dropdown menu, so that when I filter through this exposed filter, the url contains title of taxonomy and not the ID of taxonomy. 

So, I have used hook_form_alter to override this dropdown, and made it in the form, 

&lt;option value='TEXT'&gt;TEXT&lt;/option&gt;,


initially it was like

&lt;option value='ID'&gt;TEXT&lt;/option&gt;,


But in this case it is not filtering out any results, please suggest how can I make it work.

Thanks for your time.
Implementing hook_form_alter() alone is not enough. The View query will check the taxonomy by term id. Now you just altered it to title in the dropdown values.

You would then need to implement hook_views_query_alter() and alter the query condition as your need. Assuming you have a taxonomy term field field_cat, your view query will have the following similar condition - field_data_field_cat.field_cat_tid = {the_selected_value}


Now, you need to check it against taxonomy_term_data.name:

function MYMODULE_views_query_alter(&amp;$view, &amp;$query){
    if($view-&gt;name == 'your_view_name'){
        $conditions = $query-&gt;where[1]['conditions'];
        $k = 0;
        foreach($conditions as $cnd){
            if($cnd['field'] == 'field_data_field_cat.field_cat_tid'){
                $replaced_condition = array(
                    'field' =&gt; 'taxonomy_term_data_field_data_field_cat.name',
                    'value' =&gt; $cnd['value'],
                    'operator' =&gt; $cnd['operator']
                );
                $query-&gt;where[1]['conditions'][$k] = $replaced_condition;
                break;
            }
            $k++;
        }
    }
}


Hope this helps.