You are here

function search_block_view in Drupal 7

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;
  }
}