function imagepicker_get_images_by_group in Image Picker 6.2
Same name and namespace in other branches
- 5.2 imagepicker.module \imagepicker_get_images_by_group()
- 5 imagepicker.module \imagepicker_get_images_by_group()
- 7 imagepicker.functions.inc \imagepicker_get_images_by_group()
1 call to imagepicker_get_images_by_group()
- imagepicker_group_images_form_submit in ./
imagepicker.functions.inc - Submit group images form
File
- ./
imagepicker.functions.inc, line 1809 - Imagepicker functions
Code
function imagepicker_get_images_by_group($gid) {
$result = db_query("SELECT img_id FROM {imagepicker_group_images} WHERE gid = %d", array(
$gid,
));
$ct = 0;
while ($row = db_fetch_array($result)) {
$data[] = $row['img_id'];
$ct++;
}
if ($ct) {
return $data;
}
return FALSE;
}