1 date_views_argument_handler.inc | date_views_argument_handler::default_actions($which = NULL) |
Provide a list of default behaviors for this argument if the argument is not present.
Override this method to provide additional (or fewer) default behaviors.
Overrides views_handler_argument::default_actions
File
- core/
modules/ date/ views/ date_views_argument_handler.inc, line 123 - Date API views argument handler. This argument combines multiple date arguments into a single argument where all fields are controlled by the same date and can be combined with either AND or OR.
Class
Code
function default_actions($which = NULL) {
$defaults = parent::default_actions();
// There is no easy way to do summary queries on multiple fields, so remove that option.
unset($defaults['summary']);
if ($which && !empty($defaults[$which])) {
return $defaults[$which];
}
else {
return $defaults;
}
}