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_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->set_display('page_2'); $view->init_handlers(); $form_state = array( 'view' => $view, 'display' => $view->display_handler->display, 'method' => 'get', 'rerender' => TRUE, 'no_redirect' => TRUE, ); $output = drupal_build_form('views_exposed_form', $form_state); $blocks['content'] = $output;
Am I looking in the wrong direction?