function _coder_get_reviews_extensions in Coder 6.2
Return the extensions used by the reviews, that aren's part of the default extensions.
2 calls to _coder_get_reviews_extensions()
- coder_page_form in ./
coder.module - Implementation of hook_form().
- _coder_page_form_includes in ./
coder.module - Add results to form array for display on form page.
File
- ./
coder.module, line 674
Code
function _coder_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;
}