You are here

function om_search_tools in OM Tools 8.2

Same name and namespace in other branches
  1. 6.2 tools/search/search.inc \om_search_tools()
  2. 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_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;
}