You are here

function imce_inaccessible_directory in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_inaccessible_directory()
  2. 6 inc/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 1019
Implements the file browser.

Code

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