function theme_calendar_month in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.theme \theme_calendar_month()
Format a calendar view
Parameters
day: The day to display.
1 theme call to theme_calendar_month()
- calendar_get_calendar in ./
calendar_api.inc - Adapted from event_get_calendar() function in the event module Reworked to remove dependency on event module
File
- ./
calendar.theme, line 411
Code
function theme_calendar_month($op, $header, $rows) {
$attrs = array();
if ($op == 'mini') {
$attrs = array(
'class' => 'mini',
);
}
$output = theme("table", $header, $rows, $attrs);
return '<div class="calendar-calendar"><div class="month-view">' . $output . "</div></div>\n";
}