function date_views_argument_handler::default_actions in Date 8
Same name and namespace in other branches
- 7.3 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::default_actions()
- 7.2 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::default_actions()
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.
File
- date_views/
includes/ date_views_argument_handler.inc, line 121 - 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
- date_views_argument_handler
- Date API argument handler.
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) {
if (!empty($defaults[$which])) {
return $defaults[$which];
}
}
else {
return $defaults;
}
}