Hi everyone,
The API function event_get_calendar() in event.module does not theme the calendar the same as the function event_calendar_month(). It leaves off the div for "empty day" which means the rows are not all the same height if there are some without events in them.
The API function is called by og_calendar.module to make an Organic group's calendar display, and it's not used internally by event.module.
To fix it, a quick hack is to add the line:
else {$content = theme('event_empty_day', $year, $month, $cur_day, $view); }
(see patch)
This makes the rows the same height, but it's not ideal as I imagine that event_get_calendar() should probably call event_calendar_month() in some way...
But that is just one way to get the Organic Group calendars to look the same as the "site-wide" calendar.
Regards,
capdog
| Comment | File | Size | Author |
|---|---|---|---|
| event.module_56.patch | 705 bytes | Mark Theunissen |
Comments
Comment #1
killes@www.drop.org commentedAnd I had thought nobody uses that API function and removed it from event 5.2 :(
Comment #2
japerryEvent for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.