function img_assist_map_load in Image Assist 5
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_map_load()
 - 5.2 img_assist.module \img_assist_map_load()
 - 6.2 img_assist.module \img_assist_map_load()
 - 6 img_assist.module \img_assist_map_load()
 
Load the image map for a given nid.
Related topics
1 call to img_assist_map_load()
- img_assist_get_references in ./
img_assist.module  - Return a list of node links for a given nid.
 
File
- ./
img_assist.module, line 1475  - Image Assist module
 
Code
function img_assist_map_load($nid) {
  $imagemap = array();
  $result = db_query('SELECT * FROM {files} f INNER JOIN {img_assist_map} i ON f.nid = i.iid WHERE f.nid = %d', $nid);
  while ($data = db_fetch_object($result)) {
    $imagemap[] = $data->nid;
  }
  return $imagemap;
}