Index: google_cse_adv.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_cse_adv/google_cse_adv.module,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 google_cse_adv.module
--- google_cse_adv.module	13 Oct 2010 18:34:34 -0000	1.1.2.8
+++ google_cse_adv.module	14 Oct 2010 00:13:16 -0000
@@ -186,10 +186,10 @@ function google_cse_adv_search_view($typ
       $results = search_data($keys, $type);
 
       if ($results) {
-        $results = theme('box', t('Search results'), $results);
+        $results = theme('google_cse_adv_search_results', $results);
       }
       else {
-        $results = theme('box', t('Your search yielded no results'), search_help('search#noresults', drupal_help_arg()));
+        $results = theme('google_cse_adv_no_results');
       }
     }
   }
@@ -596,6 +596,12 @@ function google_cse_adv_theme($existing,
     'google_cse_adv_suggestion' => array(
       'arguments' => array('suggestions' => NULL)
     ),
+    'google_cse_adv_search_results' => array(
+      'arguments' => array('results' => NULL),
+    ),
+    'google_cse_adv_no_results' => array(
+      'arguments' => array(),
+    ),
   );
 }
 
@@ -617,3 +623,19 @@ function theme_google_cse_adv_suggestion
   $output .= theme('item_list', $items);
   return $output;
 }
+
+/**
+ * Theme the search results wrapper.
+ * @param $results
+ *   The results returned by search_data().
+ */
+function theme_google_cse_adv_search_results($results = '') {
+  return theme('box', t('Search results'), $results);
+}
+
+/**
+ * Theme the "no results" text.
+ */
+function theme_google_cse_adv_no_results() {
+  return theme('box', t('Your search yielded no results'), search_help('search#noresults', drupal_help_arg()));
+}
