function search_theme

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

Implements hook_theme().

File

modules/search/search.module, line 102

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',
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.