function search_block_view

search_block_view($delta = '')

Implements hook_block_view().

File

modules/search/search.module, line 152
Enables site-wide keyword searching.

Code

function search_block_view($delta = '') {
  if (user_access('search content')) {
    $block['content'] = drupal_get_form('search_block_form');
    return $block;
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.module/function/search_block_view/7.x