You are here

public function date_views_plugin_pager::set_argument_value in Date 7.2

Same name and namespace in other branches
  1. 7.3 date_views/includes/date_views_plugin_pager.inc \date_views_plugin_pager::set_argument_value()
1 call to date_views_plugin_pager::set_argument_value()
date_views_plugin_pager::query in date_views/includes/date_views_plugin_pager.inc
Modify the query for paging

File

date_views/includes/date_views_plugin_pager.inc, line 309
Date pager.

Class

date_views_plugin_pager
Views pager plugin to page by month.

Code

public function set_argument_value($argument, $value) {
  $argument->argument = $value;
  $argument->date_range = $argument->date_handler
    ->arg_range($value);
  $argument->min_date = $argument->date_range[0];
  $argument->max_date = $argument->date_range[1];

  // $argument->is_default works correctly for normal arguments, but does not
  // work correctly if we are swapping in a new value from the pager.
  $argument->is_default = FALSE;
}