function imagepicker_postlet_check_ok in Image Picker 6.2
1 call to imagepicker_postlet_check_ok()
- imagepicker_postlet_menu in contribs/
imagepicker_postlet/ imagepicker_postlet.module - Implementation of hook_menu().
File
- contribs/
imagepicker_postlet/ imagepicker_postlet.module, line 428 - Enables upload of images using Postlet java applet. http://www.postlet.com/ http://sourceforge.net/projects/postlet/
Code
function imagepicker_postlet_check_ok() {
$postlet_ok = TRUE;
if (variable_get('imagepicker_postlet_byrole', 0)) {
global $user;
if ($user->uid > 1) {
$roleid = variable_get('imagepicker_postlet_role', 2);
if (imagepicker_user_has_role($roleid, $user)) {
$postlet_ok = TRUE;
}
else {
$postlet_ok = FALSE;
}
}
}
return $postlet_ok;
}