Skip to content
Snippets Groups Projects
Commit 46e7dd86 authored by Romanos Dodopoulos's avatar Romanos Dodopoulos
Browse files

Remove centrally managed themes from the updates

Remove centrally managed themes from the update manager.

Related to DRUPAL-141.
parent c89a333f
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,13 @@ function cern_integration_update_projects_alter(&$projects) ...@@ -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"]]);
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment