function event_render_day in Event 5.2
Same name and namespace in other branches
- 5 event.module \event_render_day()
Returns an day of events for a calendar.
Parameters
$date A date array when the event is taking place.:
$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
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 1379
Code
function event_render_day($date, $view, $types, $terms, $rewrite_parameter = array()) {
$nodes = event_calendar_data($date, $view, $types, $terms, 'lookup', array(), $rewrite_parameter);
if (count($nodes)) {
$output = theme('event_calendar_date_box', $date, $view);
foreach ($nodes as $node) {
$output .= theme('event_node_' . $view, $node);
}
}
else {
$output .= theme('event_empty_day', $date, $view);
}
return $output;
}