public function bat_event_handler_date_filter::op_simple in Booking and Availability Management Tools for Drupal 7
Overrides views_handler_filter_date::op_simple
File
- modules/
bat_event/ views/ bat_event_handler_date_filter.inc, line 16 - Filter to handle dates stored as a string.
Class
Code
public function op_simple($field) {
$query_substitutions = views_views_query_substitutions($this->view);
$value = date('Y-m-d', intval(strtotime($this->value['value'], $query_substitutions['***CURRENT_TIME***'])));
$this->query
->add_where_expression($this->options['group'], "{$field} {$this->operator} '{$value}'");
}