function date_views_browser_period in Date 5
Same name and namespace in other branches
- 5.2 date/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_views.inc - Navigation links for the full view
- date_views_browser_period_arg in ./
date_views.inc - Format an argument for the date range
File
- ./
date_views.inc, line 675
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';
}
}