You are here

function event_render_day in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \event_render_day()

Returns an day of events for a calendar.

Parameters

$year The year the event is taking place.:

$month The month the event is taking place.:

$day The day the event is taking place. No leading zeroes.:

$types Limit to nodes of these types:

$terms Limit to events with these taxonomy terms:

Return value

A string containing all of the events taking place.

Related topics

4 calls to event_render_day()
event_calendar_day in ./event.module
Displays a daily event calendar.
event_calendar_list in ./event.module
Creates a themed list of events.
event_calendar_table in ./event.module
Creates a themed table of events.
event_calendar_week in ./event.module
Displays a weekly event calendar.
1 string reference to 'event_render_day'
event_calendar_month in ./event.module
Displays a monthly event calendar.

File

./event.module, line 1290

Code

function event_render_day($year, $month, $day, $view, $types, $terms) {
  $nodes = event_calendar_data($year, $month, $day, $view, $types, $terms);
  if (count($nodes)) {
    $output = theme('event_calendar_date_box', $year, $month, $day, $view);
    foreach ($nodes as $node) {
      $output .= theme('event_node_' . $view, $node);
    }
  }
  else {
    $output .= theme('event_empty_day', $year, $month, $day, $view);
  }
  return $output;
}