diff --git a/cern_integration.module b/cern_integration.module index 01b356a8696a8d34624d2b1b7ca6d58d3442869b..1b27ebae02db46d48e5478a52848e7e77cc229e4 100644 --- a/cern_integration.module +++ b/cern_integration.module @@ -21,6 +21,13 @@ function cern_integration_update_projects_alter(&$projects) } } } -} - + // Remove all centrally managed themes. + foreach (system_get_info("theme") as $theme_name => $theme) { + if (preg_match('#^themes/#', drupal_get_path("theme", $theme_name))) { + if (isset($theme["project"])){ + unset($projects[$theme["project"]]); + } + } + } +}