function imagepicker_get_image_groups in Image Picker 5
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_get_image_groups()
- 6.2 imagepicker.functions.inc \imagepicker_get_image_groups()
- 7 imagepicker.functions.inc \imagepicker_get_image_groups()
1 call to imagepicker_get_image_groups()
- imagepicker_group_images_form in ./
imagepicker.module - insert a form into the edit image page to allow the image to be associated with a group
File
- ./
imagepicker.module, line 1868 - Enables permitted roles to upload images for insertion into configured nodes.
Code
function imagepicker_get_image_groups($img_id) {
$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;
}