You are here

function imce_inaccessible_directory in IMCE 6.2

Same name and namespace in other branches
  1. 6 inc/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/imce.page.inc
Create a writable directory(any level) under file system directory.
imce_scan_directory in inc/imce.page.inc
Scan directory and return file list, subdirectories, and total size.
imce_working_directory in inc/imce.page.inc
Return an available directory for the profile.

File

inc/imce.page.inc, line 908
Implements the file browser.

Code

function imce_inaccessible_directory($dirname, $imce = array()) {
  if (is_string($dirname)) {
    $dirname = utf8_encode($dirname);
    drupal_set_message(t('Directory %dirname is not accessible.', array(
      '%dirname' => $dirname,
    )), 'error');
    watchdog('imce', 'Access to %directory was denied.', array(
      '%directory' => $dirname,
    ), WATCHDOG_ERROR);
  }
  return FALSE;
}