You are here

function apachesolr_search_form_search_admin_settings_alter in Apache Solr Search 6.3

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

Implements hook_form_[form_id]_alter().

This adds the 0 option to the search admin form.

File

./apachesolr_search.module, line 783
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']);
}