function theme_calendar_empty_day in Calendar 7.3
Same name and namespace in other branches
- 5.2 calendar.theme \theme_calendar_empty_day()
- 5 calendar.theme \theme_calendar_empty_day()
- 6.2 theme/theme.inc \theme_calendar_empty_day()
- 6.2 calendar_multiday/theme/theme.inc \theme_calendar_empty_day()
- 7 theme/theme.inc \theme_calendar_empty_day()
- 7 calendar_multiday/theme/theme.inc \theme_calendar_empty_day()
- 7.2 theme/theme.inc \theme_calendar_empty_day()
- 7.2 calendar_multiday/theme/theme.inc \theme_calendar_empty_day()
Format an empty day on a calendar.
Parameters
day: The day to display.
3 theme calls to theme_calendar_empty_day()
- calendar_plugin_style::calendar_build_day in includes/
calendar_plugin_style.inc - Build the contents of a single day for the $rows results.
- calendar_plugin_style::calendar_build_mini_week in includes/
calendar_plugin_style.inc - Build one week row.
- calendar_plugin_style::calendar_build_week in includes/
calendar_plugin_style.inc - Build one week row.
File
- theme/
theme.inc, line 755 - Theme functions for the Calendar module.
Code
function theme_calendar_empty_day($vars) {
$curday = $vars['curday'];
$view = $vars['view'];
if ($view->date_info->calendar_type != 'day') {
return '<div class="calendar-empty"> </div>' . "\n";
}
else {
return '<div class="calendar-dayview-empty">' . t('Empty day') . '</div>';
}
}