Title says it..

There may be an earlier place I should be catching the options, but this has worked for now:

In date_views/includes/date_views_filter_handler_simple.in

    if ($which == 'all' || $which == 'minmax') {
      $form['value'] += $this->date_parts_form($form_state, 'min', $source, $which, $this->operator_values(2), $identifier, 'default_date');
      $form['value'] += $this->date_parts_form($form_state, 'max', $source, $which, $this->operator_values(2), $identifier, 'default_to_date');
    }

    // Add some extra validation for the select widget to be sure that
    // the user inputs all parts of the date.
    if ($this->options['form_type'] == 'date_select') {
      $form['value']['#element_validate'] = array('date_views_select_validate');
    }
+
+    if($this->options['exposed']==1) {
+      if(!empty($form[$this->field . '_op']['#options']['<']))
+        $form[$this->field . '_op']['#options']['<']='Is before';
+
+      if(!empty($form[$this->field . '_op']['#options']['<=']))
+        $form[$this->field . '_op']['#options']['<=']='Is before or on';
+
+      if(!empty($form[$this->field . '_op']['#options']['>']))
+        $form[$this->field . '_op']['#options']['>']='Is after';
+
+      if(!empty($form[$this->field . '_op']['#options']['>=']))
+        $form[$this->field . '_op']['#options']['>=']='Is after or on';
+    }

Comments

MustangGB’s picture

Status: Active » Closed (works as designed)