You are here

function imagepicker_access_user_groups in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.module \imagepicker_access_user_groups()
1 string reference to 'imagepicker_access_user_groups'
imagepicker_menu in ./imagepicker.module
Implementation of hook_menu().

File

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

Code

function imagepicker_access_user_groups() {
  if (variable_get('imagepicker_account_enabled', 1) && user_access('access own imagepicker') && variable_get('imagepicker_groups_enabled', 1)) {
    return TRUE;
  }
  return FALSE;
}