You are here

function event_set_range in Event 5.2

Same name and namespace in other branches
  1. 5 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 2396

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', event_explode_date($range->event_start));
  variable_set('event_range_next', event_explode_date($range->event_end));
}