How can I theme the Views Exposed Filter? I create a view in drupal 7 display a collection of books, and taxonomy for book types .. then I call book type taxonomy in my view and it displayed good .. But because book types taxonomy menu have about 10 items and maybe increased at any time, I want to display 3 items of book types and when click More link display a list of the others, I can't do it in css only, and I can't add a div to group the other part of the list .. so how can I do that?

thank you

when I try to print my exposed filter array

function MYMODULE_form_alter(&amp;$form, $form_state, $form_id) {
  if ($form_id == 'views_exposed_form') {
     $view = $form_state['view'];

    if ($view-&gt;name == 'taxonomybooktype' &amp;&amp; $view-&gt;current_display == 'taxobooktype') {


        $form['field_book_type_tid']['#options']['All'] = "All";

              echo "&lt;pre&gt;";
      print_r($form['field_book_type_tid']);
      exit;
            }
    }


}

output:

Array
(
  [#type] =&gt; select
  [#options] =&gt; Array
    (
        [All] =&gt; All
        [0] =&gt; stdClass Object
            (
                [option] =&gt; Array
                    (
                        [7] =&gt; Chemical
                    )

            )

        [1] =&gt; stdClass Object
            (
                [option] =&gt; Array
                    (
                        [1] =&gt; computer
                    )

            )

        [2] =&gt; stdClass Object
            (
                [option] =&gt; Array
                    (
                        [6] =&gt; History
                    )

            )
    )
[#size] =&gt; 
[#default_value] =&gt; All
[#theme] =&gt; select_as_links


)

but now how can I group first tow options in a div and remain options in another div or group?
Exposed filters use the form API, so you can implement a hook_form_FORM_ID_alter():

function MYMODULE_form_views_exposed_form_alter(&amp;$form, &amp;$form_state) {
  $view = $form_state['view'];

  if ($view-&gt;name == 'my_view' &amp;&amp; $view-&gt;display == 'my_display') {
    // do something awesome
  }
}


Normal Form API procedures then apply.