How to display the same views exposed form block twice? I'm trying to display the same views exposed from block twice. Once in the left nav and once in content top. With multi block I can clone the block and I am able to display both. However, I would like the left nav form to have less exposed filters. 

The problem is that in hook_form_alter() and hook_preprocess_views_exposed_from() there are no unique identifiers that I can check to alter the form. It runs through the hooks twice but I cannot seem to know if I am dealing with the left nav form or the content top form.

Does anyone have any insight into this?

I tried the code below which works for views 2 and was going to create my own block and render the form. But I cannot get the code to work for views 3.

$view = views_get_view('brands');
$view-&gt;set_display('page_2');
$view-&gt;init_handlers();

$form_state = array(
  'view' =&gt; $view,
  'display' =&gt; $view-&gt;display_handler-&gt;display,
  'method' =&gt; 'get',
  'rerender' =&gt; TRUE,
  'no_redirect' =&gt; TRUE,
);

$output = drupal_build_form('views_exposed_form', $form_state);
$blocks['content'] = $output;


Am I looking in the wrong direction?
This code worked for me. I'm using Views 6 Alpha 4.

$view = views_get_view('your_view');
$view-&gt;set_display('the_display_you_want_that_have_a_exposed_block');
$view-&gt;init_handlers();
$exposed_form = $view-&gt;display_handler-&gt;get_plugin('exposed_form');
print $exposed_form-&gt;render_exposed_form(true);