You are here

function simple_gse_search_page in Simple Google Custom Search Engine 7

Page callback for the search results.

1 string reference to 'simple_gse_search_page'
simple_gse_search_menu in ./simple_gse_search.module
Implements hook_menu().

File

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

Code

function simple_gse_search_page() {
  drupal_add_js(array(
    'simple_gse_search' => array(
      'simple_gse_search_cx' => variable_get('simple_gse_search_cx'),
    ),
  ), 'setting');
  drupal_add_js(drupal_get_path('module', 'simple_gse_search') . '/simple_gse_search.js');
  $content = '<gcse:searchresults-only queryParameterName="s" linktarget="_parent">Please make sure javascript is enabled to see the search results.</gcse:searchresults-only>';
  return $content;
}