diff --git a/panopoly_core.profile.inc b/panopoly_core.profile.inc index cffea50..aa919e4 100644 --- a/panopoly_core.profile.inc +++ b/panopoly_core.profile.inc @@ -21,10 +21,15 @@ install_load_profile($install_state); // Include any dependencies that we might have missed... - foreach ($install_state['profile_info']['dependencies'] as $module) { + $dependencies = $install_state['profile_info']['dependencies']; + foreach ($dependencies as $module) { $module_info = drupal_parse_info_file(drupal_get_path('module', $module) . '/' . $module . '.info'); if (!empty($module_info['dependencies'])) { - $install_state['profile_info']['dependencies'] = array_unique(array_merge($install_state['profile_info']['dependencies'], $module_info['dependencies'])); + foreach ($module_info['dependencies'] as $dependency) { + $parts = explode(' (', $dependency, 2); + $dependencies[] = array_shift($parts); + } } } + $install_state['profile_info']['dependencies'] = array_unique($dependencies); }