function location_node_node_update in Location 7.3
Same name and namespace in other branches
- 7.4 location_node.module \location_node_node_update()
Implements hook_node_update().
File
- ./
location_node.module, line 81 - Associate locations with nodes.
Code
function location_node_node_update($node) {
if (location_node_node_locations_enabled($node->type)) {
if (!empty($node->locations)) {
location_save_locations($node->locations, array(
'nid' => $node->nid,
'vid' => $node->vid,
));
}
}
}