public function date_views_filter_handler::init in Date 7.2
Same name and namespace in other branches
- 8 date_views/includes/date_views_filter_handler.inc \date_views_filter_handler::init()
- 7.3 date_views/includes/date_views_filter_handler.inc \date_views_filter_handler::init()
- 7 date_views/includes/date_views_filter_handler.inc \date_views_filter_handler::init()
Provide some extra help to get the operator/value easier to use.
This likely has to be overridden by filters which are more complex than simple operator/value.
Overrides date_views_filter_handler_simple::init
File
- date_views/
includes/ date_views_filter_handler.inc, line 20 - A flexible, configurable date filter.
Class
- date_views_filter_handler
- A flexible, configurable date filter.
Code
public function init(&$view, &$options) {
parent::init($view, $options);
if (empty($this->view->date_info)) {
$this->view->date_info = new stdClass();
}
if (empty($this->view->date_info->date_fields)) {
$this->view->date_info->date_fields = array();
}
$this->view->date_info->date_fields = array_merge($this->view->date_info->date_fields, $this->options['date_fields']);
}