function search_api_sorts_theme in Search API sorts 7
Same name and namespace in other branches
- 8 search_api_sorts.module \search_api_sorts_theme()
Implements hook_theme().
File
- ./
search_api_sorts.module, line 42 - Create sort options for search queries executed via the Search API.
Code
function search_api_sorts_theme() {
$themes['search_api_sorts_form_table'] = array(
'render element' => 'element',
'file' => 'search_api_sorts.admin.inc',
);
$themes['search_api_sorts_list'] = array(
'variables' => array(
'items' => array(),
'options' => array(),
),
'file' => 'search_api_sorts.theme.inc',
);
$themes['search_api_sorts_sort'] = array(
'variables' => array(
'name' => '',
'path' => NULL,
'options' => array(),
'order_options' => array(),
'active' => FALSE,
'default_sort' => FALSE,
),
'file' => 'search_api_sorts.theme.inc',
);
return $themes;
}