function filelog_directory in File Log 6
Same name and namespace in other branches
- 6.2 filelog.module \filelog_directory()
- 7 filelog.module \filelog_directory()
4 calls to filelog_directory()
- filelog_cron in ./
filelog.module - Implementation of hook_cron().
- filelog_requirements in ./
filelog.install - Implementation of hook_requirements().
- filelog_uninstall in ./
filelog.install - Implementation of hook_uninstall().
- filelog_watchdog in ./
filelog.module - Implementation of hook_watchdog().
File
- ./
filelog.module, line 128 - Writes logging messages into files.
Code
function filelog_directory($check = TRUE, $refresh = FALSE) {
static $dir;
$f = _filelog_get_conf();
if (is_null($dir) || $refresh) {
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;
}