function _coder_review_is_drupal_core in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/coder_review.common.inc \_coder_review_is_drupal_core()
Return true if $module is in Drupal core.
1 call to _coder_review_is_drupal_core()
- _coder_review_settings_form in coder_review/
coder_review.module - Build settings form API array for coder_review.
File
- coder_review/
coder_review.module, line 1947
Code
function _coder_review_is_drupal_core($system) {
$info_file = dirname(realpath($system->filename)) . '/' . $system->name . '.info';
$info = drupal_parse_info_file($info_file);
return !empty($info['package']) && strtolower($info['package']) == 'core';
}