function date_views_browser_period in Date 5.2
Same name and namespace in other branches
- 5 date_views.inc \date_views_browser_period()
Return the correct period for the date range argument
2 calls to date_views_browser_period()
- date_views_browser_navigation in date/
date_views.inc - Navigation links for the full view
- date_views_browser_period_arg in date/
date_views.inc - Format an argument for the date range
File
- date/
date_views.inc, line 679
Code
function date_views_browser_period($period = 'month') {
switch ($period) {
case 'year':
return 'P1Y';
case 'week':
return 'P1W';
case 'day':
return 'P1D';
case 'hour':
return 'P1H';
default:
return 'P1M';
}
}