Same name and namespace in other branches
  1. 10 core/modules/search/search.module \search_theme()
  2. 7.x modules/search/search.module \search_theme()
  3. 8.9.x core/modules/search/search.module \search_theme()
  4. 9 core/modules/search/search.module \search_theme()

Implementation of hook_theme()

File

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

Code

function search_theme() {
  return array(
    'search_theme_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
      'template' => 'search-theme-form',
    ),
    'search_block_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
      'template' => 'search-block-form',
    ),
    'search_result' => array(
      'arguments' => array(
        'result' => NULL,
        'type' => NULL,
      ),
      'file' => 'search.pages.inc',
      'template' => 'search-result',
    ),
    'search_results' => array(
      'arguments' => array(
        'results' => NULL,
        'type' => NULL,
      ),
      'file' => 'search.pages.inc',
      'template' => 'search-results',
    ),
  );
}