function filelog_directory in File Log 6.2
Same name and namespace in other branches
- 6 filelog.module \filelog_directory()
- 7 filelog.module \filelog_directory()
5 calls to filelog_directory()
- filelog_cron in ./
filelog.module - Implementation of hook_cron().
- filelog_path in ./
filelog.module - filelog_requirements in ./
filelog.install - Implementation of hook_requirements().
- filelog_ui_import_entries in ./
filelog_ui.admin.inc - filelog_uninstall in ./
filelog.install - Implementation of hook_uninstall().
File
- ./
filelog.module, line 139 - Writes logging messages into files.
Code
function filelog_directory($check = TRUE, $refresh = FALSE) {
static $dir;
if (is_null($dir) || $refresh) {
$f = _filelog_get_conf();
if (is_string($f['dir'])) {
$dir = $f['dir'];
}
else {
$dir = conf_path() . '/logs';
}
if ($check && !file_check_directory($dir, FILE_MODIFY_PERMISSIONS)) {
$dir = FALSE;
}
}
return $dir;
}