search_block_view

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 search_block_view($delta = '')

Implements hook_block_view().

Code

modules/search/search.module, line 152

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