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