You are here

function apachesolr_search_bias_form in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr_search.admin.inc \apachesolr_search_bias_form()
  2. 5.2 apachesolr_search.admin.inc \apachesolr_search_bias_form()
  3. 6.3 apachesolr_search.admin.inc \apachesolr_search_bias_form()
  4. 6 apachesolr_search.admin.inc \apachesolr_search_bias_form()
  5. 6.2 apachesolr_search.admin.inc \apachesolr_search_bias_form()
1 string reference to 'apachesolr_search_bias_form'
apachesolr_bias_settings_page in ./apachesolr_search.admin.inc
Menu callback - Bias settings form.

File

./apachesolr_search.admin.inc, line 691
Administrative settings for searching.

Code

function apachesolr_search_bias_form($form, &$form_state, $env_id, $fields) {
  $form['#env_id'] = $env_id;
  $form['bias_tabs'] = array(
    '#type' => 'vertical_tabs',
  );
  $form['actions']['#type'] = 'actions';
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
    '#submit' => array(
      'apachesolr_search_bias_form_submit',
    ),
  );
  $form['actions']['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset to defaults'),
    '#submit' => array(
      'apachesolr_search_bias_form_reset',
    ),
  );
  $form += apachesolr_search_result_bias_form($env_id);
  $form += apachesolr_search_type_boost_form($env_id);
  $form += apachesolr_search_field_bias_form($fields, $env_id);
  return $form;
}