function custom_search_theme in Custom Search 8
Same name and namespace in other branches
- 6 custom_search.module \custom_search_theme()
- 7 custom_search.module \custom_search_theme()
Implements hook_theme().
File
- ./
custom_search.module, line 399 - Bring customizations to the default search box.
Code
function custom_search_theme($existing, $type, $theme, $path) {
$custom_search_theme_array = [
'custom_search_results' => [
'variables' => [
'variables' => [
'items' => [],
'title' => '',
'list_type' => 'ul',
'attributes' => [],
'empty' => NULL,
'filter_position' => FALSE,
'filter' => '',
],
],
'file' => 'custom_search.pages.inc',
],
'search_result' => [
'variables' => [
'result' => NULL,
'plugin_id' => NULL,
'url' => '',
'title' => '',
'title_attributes' => [],
'content_attributes' => [],
'type' => '',
'user' => NULL,
'date' => NULL,
'extra' => [],
'snippet' => '',
'info_split' => [],
'info' => '',
],
'file' => 'custom_search.pages.inc',
'template' => 'custom-search-result',
],
'item_list__search_results' => [
'variables' => [
'items' => [],
'title' => '',
'list_type' => 'ul',
'attributes' => [],
'empty' => NULL,
],
'file' => 'custom_search.pages.inc',
'template' => 'custom-search-results',
],
];
return $custom_search_theme_array;
}