Commit 2e440158 authored by helmo's avatar helmo

Issue #2350695 by omega8cc, helmo: Profile is registered twice, also as a...

Issue #2350695 by omega8cc, helmo: Profile is registered twice, also as a module, which causes warning
parent aa69ac97
......@@ -138,8 +138,13 @@ function _provision_drupal_system_map() {
$packages['profiles'][$profile]->status = 1;
foreach (_provision_system_query("module") as $module) {
// Skip profiles, these have a separate section above.
if (preg_match('/\.profile$/', $module->filename)) {
continue;
}
$info_file = sprintf("%s/%s.info", dirname($module->filename), $module->name);
$module->info = provision_parse_info_file($info_file);
// Skip hidden modules
if (isset($module->info['hidden']) && $module->info['hidden'] == 1) {
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment