You are here

function theme_event_empty_day in Event 5

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

Format an empty day on a calendar

Parameters

day: 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 356

Code

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