function imagepicker_get_image_groups in Image Picker 6.2
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_get_image_groups()
- 5 imagepicker.module \imagepicker_get_image_groups()
- 7 imagepicker.functions.inc \imagepicker_get_image_groups()
2 calls to imagepicker_get_image_groups()
- imagepicker_copy_form_submit in ./
imagepicker.functions.inc - Function to submit the copy form
- imagepicker_group_images_form in ./
imagepicker.functions.inc - Insert a form into the edit image page to allow the image to be associated with a group.
File
- ./
imagepicker.functions.inc, line 1800 - Imagepicker functions
Code
function imagepicker_get_image_groups($img_id) {
$data = array();
$result = db_query("SELECT gid FROM {imagepicker_group_images} WHERE img_id = %d", array(
$img_id,
));
while ($row = db_fetch_array($result)) {
$data[] = $row['gid'];
}
return $data;
}