You are here

function event_render_day_single in Event 5

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

Returns a link to the event page for a single day.

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

The value of the day requested. If the day has events, the value will be a link to a more detailed page of that day's events.

Related topics

1 string reference to 'event_render_day_single'
event_calendar_month in ./event.module
Displays a monthly event calendar.

File

./event.module, line 1275

Code

function event_render_day_single($year, $month, $day, $view, $types, $terms) {
  return count(event_calendar_data($year, $month, $day, $view, $types, $terms)) ? l($day, "event/{$year}/{$month}/{$day}/day") : $day;
}