function event_render_day_single in Event 5.2
Same name and namespace in other branches
- 5 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:
$rewrite_parameter optional array that will be passed on to queries: in event_database.*.inc files and merged into the fourth argument of db_rewrite_sql.
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 1362
Code
function event_render_day_single($date, $view, $types, $terms, $rewrite_parameter = array()) {
return count(event_calendar_data($date, $view, $types, $terms, 'lookup', array(), $rewrite_parameter)) ? l((int) $date['day'], 'event/' . _event_format_url($date) . '/day') : (int) $date['day'];
}