function imce_process_profile in IMCE 6
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_process_profile()
- 7 inc/imce.page.inc \imce_process_profile()
Get files and folders of the actve directory. Do custom processing.
2 calls to imce_process_profile()
- imce_content in inc/
page.inc - Content of the file browser.
- imce_js in inc/
page.inc - Ajax operations. q=imce&jsop={op}
File
- inc/
page.inc, line 694
Code
function imce_process_profile(&$imce) {
//get directory content. do a custom scan if it is set
$scan = ($scan = variable_get('imce_custom_scan', '')) && function_exists($scan) ? $scan : 'imce_scan_directory';
$imce += $scan($imce['dir'], $imce);
//run custom process functions
foreach (variable_get('imce_custom_process', array()) as $func => $state) {
if ($state && function_exists($func)) {
$func($imce);
}
}
//set subdirectories
if (!$imce['error'] && !imce_subdirectories_accessible($imce)) {
$imce['subdirectories'] = array();
}
}