You are here

function getlocations_fields_delete_revision_record_relations in Get Locations 7

Parameters

array $relations: Relationship information

int $glid: The location ID

1 call to getlocations_fields_delete_revision_record_relations()
getlocations_fields_delete_revision_record in modules/getlocations_fields/getlocations_fields.module
Create a location

File

modules/getlocations_fields/getlocations_fields.module, line 2372
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_delete_revision_record_relations($relations, $glid) {
  $query = db_delete('getlocations_fields_entities')
    ->condition('glid', $glid);
  foreach ($relations as $key => $value) {
    $query
      ->condition($key, $value);
  }
  $query
    ->execute();
}