function event_set_range in Event 5
Same name and namespace in other branches
- 5.2 event.module \event_set_range()
Update the variables the module uses to track the first and last events.
2 calls to event_set_range()
- event_nodeapi in ./
event.module - hook_nodeapi implementation
- _event_nav in ./
event.module - Build the navigation links for the calendar views
File
- ./
event.module, line 2148
Code
function event_set_range() {
$range = db_fetch_object(db_query('select MIN(e.event_start) AS event_start, MAX(e.event_end) AS event_end FROM {event} e'));
variable_set('event_range_prev', $range->event_start);
variable_set('event_range_next', $range->event_end);
}