function theme_date_nav_title in Date 6
Same name and namespace in other branches
- 8 date_views/theme/theme.inc \theme_date_nav_title()
- 6.2 theme/theme.inc \theme_date_nav_title()
- 7.3 date_views/theme/theme.inc \theme_date_nav_title()
- 7 date_views/theme/theme.inc \theme_date_nav_title()
- 7.2 date_views/theme/theme.inc \theme_date_nav_title()
Theme the calendar title
1 theme call to theme_date_nav_title()
- template_preprocess_date_navigation in theme/
theme.inc - Preprocessor to construct back and next navigation from the date argument.
File
- theme/
theme.inc, line 50
Code
function theme_date_nav_title($date_type, $view) {
switch ($date_type) {
case 'year':
return $view->year;
case 'month':
return date_format_date($view->min_date, 'custom', 'F');
case 'day':
return date_format_date($view->min_date, 'custom', 'l, F j Y');
case 'week':
return t('Week of @date', array(
'@date' => date_format($view->min_date, 'F j'),
));
}
}