You are here

class Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget in Date Facets 7

Same name and namespace in other branches
  1. 8 lib/Drupal/Apachesolr/Facetapi/Widget/DateRangeWidget.inc \Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget

Date range widget that displays ranges similar to major search engines.

There is a hack in place that only allows one item to be active at a time since if would make sense to have multiple active values.

Hierarchy

Expanded class hierarchy of Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget

1 string reference to 'Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget'
date_facets_facetapi_widgets in ./date_facets.facetapi.inc
Implements hook_facetapi_widgets().

File

lib/Drupal/Facetapi/Widget/DateRangeWidget.php, line 14
Contains Drupal_Apachesolr_Facetapi_QueryType_DateRangeQueryType

View source
class Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget extends FacetapiWidgetLinks {

  /**
   * Overrides FacetapiWidget::settingsForm().
   */
  function settingsForm(&$form, &$form_state) {
    parent::settingsForm($form, $form_state);
    unset($form['widget']['widget_settings']['links'][$this->id]['soft_limit']);
    unset($form['widget']['widget_settings']['links'][$this->id]['show_expanded']);
  }

  /**
   * Overrides FacetapiWidget::getDefaultSettings().
   */
  function getDefaultSettings() {
    return array(
      'nofollow' => 1,
    );
  }

}

Members