You are here

function imce_access in IMCE 7

Same name and namespace in other branches
  1. 6.2 imce.module \imce_access()
  2. 6 imce.module \imce_access()

Checks if the user is assigned an imce profile.

A more detailed assignment check is performed before imce loads.

1 call to imce_access()
imce_textarea in ./imce.module
Inline image/link insertion to textareas.
1 string reference to 'imce_access'
imce_menu in ./imce.module
Implements hook_menu().

File

./imce.module, line 229
Implements the necessary hooks for the file browser to work properly.

Code

function imce_access($user = FALSE, $scheme = NULL) {
  if ($user === FALSE) {
    global $user;
  }
  return imce_user_profile($user, $scheme) ? TRUE : FALSE;
}