function om_search_tools in OM Tools 6.2
Same name and namespace in other branches
- 8.2 tools/search/search.inc \om_search_tools()
- 7.2 tools/search/search.inc \om_search_tools()
Search Tools Form
File
- tools/
search/ search.inc, line 16 - Search Tools
Code
function om_search_tools(&$form, $search_defaults = array()) {
// Search Tools
$search_tools = array();
$search_tools['search_theme'] = array(
'#type' => 'fieldset',
'#title' => t('Search Theme Form'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t(''),
);
$search_tools['search_theme'] += om_search_theme($search_defaults);
$search_tools['search_block'] = array(
'#type' => 'fieldset',
'#title' => t('Search Block Form'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$search_tools['search_block'] += om_search_block($search_defaults);
$search_tools['search'] = array(
'#type' => 'fieldset',
'#title' => t('Search Page Form'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$search_tools['search'] += om_search($search_defaults);
$form['om_search_tools'] = array(
'#type' => 'fieldset',
'#title' => t('Search'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['om_search_tools'] += $search_tools;
return $form;
}