You are here

function img_assist_map_load in Image Assist 5.2

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