Skip to content
Snippets Groups Projects
Commit e66a3860 authored by catch's avatar catch
Browse files

Issue #3105353 by tedbow, dww, xjm, joachim: Remove the ability for module to...

Issue #3105353 by tedbow, dww, xjm, joachim: Remove the ability for module to define "major" in their info.yml files
parent 21bd33d6
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
......@@ -41,10 +41,9 @@ function update_process_project_info(&$projects) {
if (preg_match('/^(\d+\.x-)?(\d+)\..*$/', $info['version'], $matches)) {
$info['major'] = $matches[2];
}
elseif (!isset($info['major'])) {
else {
// This would only happen for version strings that don't follow the
// drupal.org convention. We let contribs define "major" in their
// .info.yml in this case, and only if that's missing would we hit this.
// drupal.org convention.
$info['major'] = -1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment