From 46e7dd863a3204b2e88904a477fdfcc2bc7aa8d2 Mon Sep 17 00:00:00 2001 From: Romanos Dodopoulos <romanos.dodopoulos@cern.ch> Date: Tue, 13 Feb 2018 17:42:55 +0100 Subject: [PATCH] Remove centrally managed themes from the updates Remove centrally managed themes from the update manager. Related to DRUPAL-141. --- cern_integration.module | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cern_integration.module b/cern_integration.module index 01b356a..1b27eba 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"]]); + } + } + } +} -- GitLab