How to show search block in drupal 7

    You can show search block in drupal 7 by using dashboard module its enabled by default. You can go to dashboard and select the search form block configure it and show it in the region where you need it. If you need to show it programatically You can use following code
    <?php
              $searchblock
    = module_invoke('search', 'block_view', 'search');
              print
    render($searchblock );
    ?>
    5
    Average: 5 (1 vote)