How to just load the exposed views filter

Example of how to load just the exposed views filter:

$view = views_get_view('example_views');
      if($view){
        $view->set_display('page_1');
        $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);
      }else{
        $output = ""; // error messages or something...
      }
 
      print $output;

Using hook_theme

Example of using hook_theme.

/**
 * Implementation of hook_theme().
 */
function example_theme() {
  return array(
    'example_taxonomy' => array(
      'template' => 'example-taxonomy',
      'arguments' => array('node' => NULL, 'options' => NULL),
    ),
    'example_taxonomy_terms' => array(
      'arguments' => array('voc' => NULL, 'node' => NULL, 'options' => NULL),
    ),
    'example_front_page' => array(
      'template' => 'example-front-page',
      'arguments' => array(),
    ),
  );
}

Control site tabs with tab tamer

Tab tamer is a module that let’s you control which tabs you want to display or hide. Often when you enable a module it adds an extra tab on the user profile or node page. With the tab tamer module you can control which tabs are displayed.

UPDATE: Setup Tab Tamer on Drupal 7

To install this module just go to Administer >> Site building >> Modules and enable the module.

Continue reading “Control site tabs with tab tamer”