function event_week_header in Event 5
Same name and namespace in other branches
- 5.2 event.module \event_week_header()
Formats the weekday information into table header format
Return value
array with weekday table header data
Related topics
3 calls to event_week_header()
- event_calendar_month in ./
event.module - Displays a monthly event calendar.
- event_calendar_week in ./
event.module - Displays a weekly event calendar.
- event_get_calendar in ./
event.module - Returns a calendar in the requested format, populated with the provided nodes. This is not used internally, rather it is an API funciton for external modules to use for rendering calendars when constructing thier own event objects.
File
- ./
event.module, line 1333
Code
function event_week_header() {
// create week header
$days = event_week_days();
foreach ($days as $day) {
$row[] = array(
'class' => strtolower($day['day']),
'data' => $day['t'],
);
}
return $row;
}