You are here

function theme_event_empty_day in Event 5.2

Same name and namespace in other branches
  1. 5 event.theme \theme_event_empty_day()

Format an empty day on a calendar

Parameters

date: The day to display.

1 theme call to theme_event_empty_day()
event_render_day in ./event.module
Returns an day of events for a calendar.

File

./event.theme, line 366

Code

function theme_event_empty_day($date, $view) {
  switch ($view) {
    case 'table':
      $output = '<div class="day">' . t('%month / %day', array(
        '%month' => $date['month'],
        '%day' => (int) $date['day'],
      )) . '</div>' . "\n";
      $output .= '<div class="event-empty"></div>' . "\n";
      break;
    case 'day':
    case 'list':
      break;
    default:
      $output = '<div class="day">' . (int) $date['day'] . '</div>' . "\n";
      $output .= '<div class="event-empty"></div>' . "\n";
      break;
  }
  return $output;
}