You are here

function imagepicker_get_images_by_group in Image Picker 5

Same name and namespace in other branches
  1. 5.2 imagepicker.module \imagepicker_get_images_by_group()
  2. 6.2 imagepicker.functions.inc \imagepicker_get_images_by_group()
  3. 7 imagepicker.functions.inc \imagepicker_get_images_by_group()
1 call to imagepicker_get_images_by_group()
imagepicker_group_images_form_submit in ./imagepicker.module
Submit form

File

./imagepicker.module, line 1876
Enables permitted roles to upload images for insertion into configured nodes.

Code

function imagepicker_get_images_by_group($gid) {
  $result = db_query("SELECT img_id FROM {imagepicker_group_images} WHERE gid = %d", array(
    $gid,
  ));
  while ($row = db_fetch_array($result)) {
    $data[] = $row['img_id'];
  }
  return $data;
}