Now that the schedule is a node I'd like to have hook_load load all the scheduled items and group them by day. Then the hook_view type of code can just iterate through that rather than calling a function to load the information. This way we get to take advantage of the node_load() caching.

CommentFileSizeAuthor
#1 station_166271.patch19.73 KBdrewish
station.patch5.42 KBdrewish

Comments

drewish’s picture

Status: Needs work » Fixed
StatusFileSize
new19.73 KB

Removed station_schedule_load_day(), the loading is now done in station_schedule_load(). station_schedule_item_list() and station_schedule_week_page() now much much more code in common. Committing the attached to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)