function _imagepicker_has_public_groups in Image Picker 6.2
Same name and namespace in other branches
- 7 imagepicker.functions.inc \_imagepicker_has_public_groups()
how many public groups
3 calls to _imagepicker_has_public_groups()
- imagepicker_browse_admin_form in ./
imagepicker.functions.inc - list of images with bulk operations
- _imagepicker_browse_admin in ./
imagepicker.functions.inc - _imagepicker_browse_public in ./
imagepicker.functions.inc
File
- ./
imagepicker.functions.inc, line 1506 - Imagepicker functions
Code
function _imagepicker_has_public_groups($account = FALSE, $admin = FALSE) {
if (!variable_get('imagepicker_groups_enabled', 0)) {
return 0;
}
if ($admin && variable_get('imagepicker_browse_public', 0) != 1) {
return 0;
}
$list = imagepicker_get_public_grouplist($account, $admin);
if (is_array($list)) {
return count($list);
}
return 0;
}