You are here

function _resource_conflict_get_conflicting_nids in Resource Conflict 7.3

Check a node for conflicts.

Return value

array A list of nodes.

2 calls to _resource_conflict_get_conflicting_nids()
resource_conflict_contains_conflict in ./resource_conflict.module
Rules Condition: check a node object for conflicts.
resource_conflict_load_conflict_list in ./resource_conflict.module
Rules Action: load list of conflicting nodes, if any.

File

./resource_conflict.module, line 42
Provides general functionality for the resource conflict module.

Code

function _resource_conflict_get_conflicting_nids($node) {

  // Check the content type to make sure conflict handling is enabled.
  if (!variable_get('rc_type_' . $node->type, FALSE)) {
    return array();
  }
  $time_spans = _resource_conflict_get_timespans($node);

  // Back out if we don't have date data to compare with.
  if (empty($time_spans)) {
    return array();
  }
  return _resource_conflict_query_for_conflicts($time_spans, $node->nid);
}