function search_block_view

Implements hook_block_view().

File

modules/search/search.module, line 152

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.