Commit d83c9ec1 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-3973: Make Drupal module update checks ignore "-uw_wcms"

parent f8dcb0a3
......@@ -39,3 +39,14 @@ function uw_sites_all_preprocess_block(&$variables) {
$variables['in_layout_builder'] = TRUE;
}
}
/**
* Implements hook_update_projects_alter().
*/
function uw_sites_all_update_projects_alter(&$projects) {
foreach ($projects as &$project) {
// Removes -uw_wcms (and any trailing numbers) from version numbers so
// Drupal reports updates properly.
$project['info']['version'] = preg_replace('/-uw_wcms\d*$/', '', $project['info']['version']);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment