public function date_views_plugin_pager::date_forbid in Date 7.3
Same name and namespace in other branches
- 8 date_views/includes/date_views_plugin_pager.inc \date_views_plugin_pager::date_forbid()
- 7.2 date_views/includes/date_views_plugin_pager.inc \date_views_plugin_pager::date_forbid()
Determine if we have moved outside the valid date range for this argument.
1 call to date_views_plugin_pager::date_forbid()
- 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 345 - Date pager.
Class
- date_views_plugin_pager
- Views pager plugin to page by month.
Code
public function date_forbid($argument) {
// See if we're outside the allowed date range for our argument.
$limit = date_range_years($argument->options['year_range']);
if (date_format($argument->min_date, 'Y') < $limit[0] || date_format($argument->max_date, 'Y') > $limit[1]) {
return TRUE;
}
return FALSE;
}