function img_assist_map_load in Image Assist 6.2
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_map_load()
- 5 img_assist.module \img_assist_map_load()
- 5.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 1629 - Image Assist module
Code
function img_assist_map_load($nid) {
$imagemap = array();
$result = db_query('SELECT * FROM {image} i INNER JOIN {img_assist_map} iam ON i.nid = iam.iid WHERE i.nid = %d', $nid);
while ($data = db_fetch_object($result)) {
$imagemap[] = $data->nid;
}
return $imagemap;
}