You are here

function google_cse_render_xml in Google Custom Search Engine 7.3

1 string reference to 'google_cse_render_xml'
google_cse_menu in ./google_cse.module
Implements hook_menu().

File

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

Code

function google_cse_render_xml() {
  $cse_array = explode(":", variable_get('google_cse_cx'));
  $cse_variables = array(
    "cse_creator" => $cse_array[0],
    "cse_id" => $cse_array[1],
    "title" => variable_get('google_cse_name'),
  );
  print theme('google_cse_xml', array(
    'node' => $cse_variables,
  ));
}