Skip to content
Snippets Groups Projects
Commit f9e4906b authored by Grazyna Jaworska's avatar Grazyna Jaworska
Browse files

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 c13052f6
No related branches found
No related tags found
No related merge requests found
......@@ -135,8 +135,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment