You are here

function imce_inaccessible_directory in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_inaccessible_directory()
  2. 7 inc/imce.page.inc \imce_inaccessible_directory()

Generate and log a directory access error.

3 calls to imce_inaccessible_directory()
imce_check_directory in inc/page.inc
Create a writable directory(any level) under file system directory.
imce_scan_directory in inc/page.inc
Scan directory and return file list, subdirectories, and total size.
imce_working_directory in inc/page.inc
Return an avaliable directory for the profile.

File

inc/page.inc, line 811

Code

function imce_inaccessible_directory($dirname) {
  if (is_string($dirname)) {
    $msg = 'Directory "%dir" is not accessible under file system!';
    $token = array(
      '%dir' => utf8_encode($dirname),
    );
    drupal_set_message(t($msg, $token), 'error');
    watchdog('imce', $msg, $token, WATCHDOG_ERROR);
  }
  return FALSE;
}