You are here

function _resource_conflict_overlaps_from_date in Resource Conflict 5.2

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

Determine if any nodes conflict between the specified dates using Date API.

Parameters

$date_start: The start date of the date to check

$date_end: The end date of the date to check.

Return value

An array of node ID's

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

File

./resource_conflict.module, line 327

Code

function _resource_conflict_overlaps_from_date($date_start, $date_end) {
  $start = date_make_date($date_start, 'GMT', DATE_ISO);
  $end = date_make_date($date_end, 'GMT', DATE_ISO);
  return _resource_conflict_get_overlaps($start, $end);
}