function _coder_review_get_reviews_extensions in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/coder_review.common.inc \_coder_review_get_reviews_extensions()
Return the extensions used by the reviews, that aren't part of the default extensions.
1 call to _coder_review_get_reviews_extensions()
- coder_review_page_form in coder_review/
coder_review.module - Implements hook_form().
File
- coder_review/
coder_review.module, line 759
Code
function _coder_review_get_reviews_extensions($defaults, $reviews) {
$extensions = array();
foreach ($reviews as $review) {
foreach ($review['#rules'] as $rule) {
if (isset($rule['#filename'])) {
foreach ($rule['#filename'] as $ext) {
if (!in_array($ext, $defaults) && !in_array($ext, $extensions)) {
$extensions[] = $ext;
}
}
}
}
}
return $extensions;
}