You are here

function apachesolr_search_form_search_admin_settings_alter in Apache Solr Search 6

Same name and namespace in other branches
  1. 6.3 apachesolr_search.module \apachesolr_search_form_search_admin_settings_alter()
  2. 6.2 apachesolr_search.module \apachesolr_search_form_search_admin_settings_alter()

Implementation of hook_form_[form_id]_alter().

This adds the 0 option to the search admin form.

File

./apachesolr_search.module, line 859
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_form_search_admin_settings_alter(&$form, $form_state) {
  $form['indexing_throttle']['search_cron_limit']['#options']['0'] = '0';
  ksort($form['indexing_throttle']['search_cron_limit']['#options']);
}