You are here

function theme_calendar_empty_day in Calendar 7.3

Same name and namespace in other branches
  1. 5.2 calendar.theme \theme_calendar_empty_day()
  2. 5 calendar.theme \theme_calendar_empty_day()
  3. 6.2 theme/theme.inc \theme_calendar_empty_day()
  4. 6.2 calendar_multiday/theme/theme.inc \theme_calendar_empty_day()
  5. 7 theme/theme.inc \theme_calendar_empty_day()
  6. 7 calendar_multiday/theme/theme.inc \theme_calendar_empty_day()
  7. 7.2 theme/theme.inc \theme_calendar_empty_day()
  8. 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">&nbsp;</div>' . "\n";
  }
  else {
    return '<div class="calendar-dayview-empty">' . t('Empty day') . '</div>';
  }
}