You are here

function location_node_node_revision_delete in Location 7.3

Implements hook_node_revision_delete().

File

./location_node.module, line 34
Associate locations with nodes.

Code

function location_node_node_revision_delete($node) {
  if (location_node_node_locations_enabled($node->type)) {
    $locations = array();
    location_save_locations($locations, array(
      'vid' => $node->vid,
    ));
  }
}