You are here

function img_assist_map_delete in Image Assist 5.3

Same name and namespace in other branches
  1. 5 img_assist.module \img_assist_map_delete()
  2. 5.2 img_assist.module \img_assist_map_delete()
  3. 6.2 img_assist.module \img_assist_map_delete()
  4. 6 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 1588
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);
}