You are here

function google_cse_block_view in Google Custom Search Engine 7.3

Same name and namespace in other branches
  1. 7 google_cse.module \google_cse_block_view()
  2. 7.2 google_cse.module \google_cse_block_view()

Implements hook_block_view().

File

./google_cse.module, line 178
Display a Google Custom Search Engine (CSE) on your site.

Code

function google_cse_block_view($delta = '') {
  if (user_access('search Google CSE')) {
    switch ($delta) {
      case 'google_cse':
        return array(
          'subject' => t('Search'),
          'content' => array(
            '#theme' => 'google_cse_results',
            '#form' => TRUE,
          ),
        );
    }
  }
}