function coder_reviews in Coder 5
Same name and namespace in other branches
- 5.2 coder.module \coder_reviews()
- 6.2 coder.module \coder_reviews()
- 6 coder.module \coder_reviews()
1 string reference to 'coder_reviews'
File
- ./
coder.module, line 37 - 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_reviews() {
global $_coder_reviews;
if (!isset($_coder_reviews)) {
$_coder_reviews = array();
$path = drupal_get_path('module', 'coder') . '/includes';
$files = drupal_system_listing('coder_.*\\.inc$', $path, 'name', 0);
foreach ($files as $file) {
require_once './' . $file->filename;
$function = $file->name . '_reviews';
if (function_exists($function)) {
if ($review = call_user_func($function)) {
$_coder_reviews = array_merge($_coder_reviews, $review);
}
}
}
}
return $_coder_reviews;
}