function img_assist_map_delete in Image Assist 6
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_map_delete()
- 5 img_assist.module \img_assist_map_delete()
- 5.2 img_assist.module \img_assist_map_delete()
- 6.2 img_assist.module \img_assist_map_delete()
Delete references to a non-existant node.
If a node is being deleted update the map table. The node can either be an image node or a node containing one ore more images. Note: nodes that link to image nodes that are deleted will still be broken.
Related topics
1 call to img_assist_map_delete()
- img_assist_nodeapi in ./
img_assist.module - Implementation of hook_nodeapi().
File
- ./
img_assist.module, line 1476 - Image Assist module
Code
function img_assist_map_delete($node) {
db_query('DELETE FROM {img_assist_map} WHERE nid = %d OR iid = %d', $node->nid, $node->nid);
}