function _coder_modified in Coder 6.2
Same name and namespace in other branches
- 5.2 coder.module \_coder_modified()
- 5 coder.module \_coder_modified()
- 6 coder.module \_coder_modified()
Return last modification timestamp of coder and all of its dependencies.
1 call to _coder_modified()
- do_coder_reviews in ./
coder.module - Perform batch coder reviews for multiple files.
File
- ./
coder.module, line 968
Code
function _coder_modified() {
static $_coder_mtime;
if (!isset($_coder_mtime)) {
$path = drupal_get_path('module', 'coder');
$includefiles = drupal_system_listing('.*\\.(inc|module|coder_ignores.txt)$', $path . '/includes', 'filename', 0);
$_coder_mtime = filemtime(realpath($path . '/coder.module'));
foreach ($includefiles as $file) {
$mtime = filemtime(realpath($file->filename));
if ($mtime > $_coder_mtime) {
$_coder_mtime = $mtime;
}
}
}
return $_coder_mtime;
}