function _coder_modified in Coder 5
Same name and namespace in other branches
- 5.2 coder.module \_coder_modified()
- 6.2 coder.module \_coder_modified()
- 6 coder.module \_coder_modified()
1 call to _coder_modified()
File
- ./
coder.module, line 634 - 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', 'name', 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;
}