You are here

function simple_gse_search_block_view in Simple Google Custom Search Engine 7

Implements hook_block_view().

File

./simple_gse_search.module, line 55
Module file for Simple GSE Search

Code

function simple_gse_search_block_view($delta = '') {
  $block = array();
  if ($delta === 'simple_gse_search_form') {
    if (isset($_GET['s'])) {
      $default_term = $_GET['s'];
    }
    else {
      $default_term = '';
    }
    $block['subject'] = '';
    $block['content'] = drupal_get_form('simple_gse_search_form', $default_term);
  }
  return $block;
}