function _coder_modified in Coder 6
Same name and namespace in other branches
- 5.2 coder.module \_coder_modified()
- 5 coder.module \_coder_modified()
- 6.2 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 902 - Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.
Code
function _coder_modified() {
static $_coder_mtime;
if (!isset($_coder_mtime)) {
$path = drupal_get_path('module', 'coder');
$includefiles = drupal_system_listing('.*\\.(inc|module)$', $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;
}