You are here

function _uniqueness_search_mode_options in Uniqueness 6

Same name and namespace in other branches
  1. 7 uniqueness.admin.inc \_uniqueness_search_mode_options()
1 call to _uniqueness_search_mode_options()
uniqueness_settings in ./uniqueness.admin.inc
Form builder for uniqueness settings page; system_settings_form().

File

./uniqueness.admin.inc, line 113
Settings page for the uniqueness module.

Code

function _uniqueness_search_mode_options() {
  $options = array(
    UNIQUENESS_SEARCH_MODE_NODETITLE => t('Simple node title search'),
  );
  if (module_exists('search')) {
    $options += array(
      UNIQUENESS_SEARCH_MODE_DRUPAL => t('Drupal search'),
    );
  }
  if (module_exists('apachesolr_search')) {
    $options += array(
      UNIQUENESS_SEARCH_MODE_SOLR => t('Apache Solr search'),
    );
  }
  return $options;
}