You are here

function imagepicker_group_exists in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.functions.inc \imagepicker_group_exists()
3 calls to imagepicker_group_exists()
imagepicker_browse_groups_form in ./imagepicker.functions.inc
all the groups for the current user which have images attached
imagepicker_browse_public_groups_form in ./imagepicker.functions.inc
Public browse groups form
_imagepicker_browse_public in ./imagepicker.functions.inc

File

./imagepicker.functions.inc, line 1567
Imagepicker functions

Code

function imagepicker_group_exists($gid) {
  $result = db_query("SELECT gid FROM {imagepicker_user_groups} WHERE gid = %d", array(
    $gid,
  ));
  $row = db_fetch_array($result);
  if ($row['gid']) {
    return TRUE;
  }
  return FALSE;
}