function search_block_view

7.x search.module search_block_view($delta = '')

Implements hook_block_view().

File

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