You are here

function search_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/search/search.module \search_theme()
  2. 6 modules/search/search.module \search_theme()
  3. 9 core/modules/search/search.module \search_theme()

Implements hook_theme().

File

modules/search/search.module, line 102
Enables site-wide keyword searching.

Code

function search_theme() {
  return array(
    'search_block_form' => array(
      'render element' => 'form',
      'template' => 'search-block-form',
    ),
    'search_result' => array(
      'variables' => array(
        'result' => NULL,
        'module' => NULL,
      ),
      'file' => 'search.pages.inc',
      'template' => 'search-result',
    ),
    'search_results' => array(
      'variables' => array(
        'results' => NULL,
        'module' => NULL,
      ),
      'file' => 'search.pages.inc',
      'template' => 'search-results',
    ),
  );
}