You are here

function _resource_conflict_overlaps_from_event in Resource Conflict 5.2

Same name and namespace in other branches
  1. 6.2 resource_conflict.module \_resource_conflict_overlaps_from_event()
  2. 7.2 resource_conflict.module \_resource_conflict_overlaps_from_event()

Determine if any nodes conflict between the specified dates using Event.

Parameters

$event_start: The start date of the event to check

$event_end: The end date of the event to check.

Return value

An array of node ID's

1 call to _resource_conflict_overlaps_from_event()
resource_conflict_nodeapi in ./resource_conflict.module
Implementation of hook_nodeapi

File

./resource_conflict.module, line 343

Code

function _resource_conflict_overlaps_from_event($event_start, $event_end) {
  $start = date_make_date($event_start, 'GMT', DATE_UNIX);
  $end = date_make_date($event_end, 'GMT', DATE_UNIX);
  return _resource_conflict_get_overlaps($start, $end);
}