function getlocations_fields_delete_record in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_delete_record()
Create a location
Parameters
array $location: The location
array $relations: Relationship information
3 calls to getlocations_fields_delete_record()
- getlocations_fields_field_update in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_field_update(). Define custom update behavior for this module's field types.
- getlocations_fields_modules_uninstalled in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_modules_uninstalled().
- getlocations_fields_save_locations in modules/
getlocations_fields/ getlocations_fields.module
File
- modules/
getlocations_fields/ getlocations_fields.module, line 2302 - getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_delete_record($location, $relations) {
if (isset($location['glid'])) {
db_delete('getlocations_fields')
->condition('glid', $location['glid'])
->execute();
getlocations_fields_delete_record_relations($relations, $location['glid']);
}
}