Problem/Motivation
We would like to deprecate all legacy code in the file core/includes/module.inc. The function drupal_required_modules() is used only once in core/includes/install.inc and 5 usages in contrib http://grep.xnddx.ru/search?text=drupal_required_modules
Proposed resolution
Deprecate the function without replacement
Remaining tasks
review/commit
User interface changes
None
API changes
The function drupal_required_modules() will be deprecated.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3262805-13-10.0.x.patch | 3.79 KB | voleger |
| #10 | interdiff-vs5.txt | 1.35 KB | andypost |
| #10 | 3262805-10.patch | 3.84 KB | andypost |
Comments
Comment #2
andypostComment #3
andypostFiled CR https://www.drupal.org/node/3262811
Comment #4
volegertypo, needs work
Comment #5
andypostFixed typos
Comment #6
volegerLooks good. Single function usage was replaced with appropriate code. A deprecation message was added and is correct. The deprecation test is implemented.
Comment #7
catchTests are failing.
Comment #8
volegerIn scope of the foreach loop here, the
$infovariable has to be renamed to, let's say,$file_infovariableComment #9
ravi.shankar commentedMade changes as per comment #8, Let's see if the test bot is happy or not.
By mistake added the wrong name of the patch...
Comment #10
andypostThank you, polished with "parser" and "parsed"
Comment #11
volegerYes, that was the issue. Looks good now.
Comment #12
catchLooks good now, but needs a reroll.
Comment #13
volegerPatch #10 applied cleanly over 9.4.x
Attaching the rerolled patch for 10.0.x
Comment #14
andypostI think for 10.0.x we need follow-up to remove the function when the issue commited
Comment #15
andypostComment #17
catchCommitted e5c38d9 and pushed to 10.0.x. Thanks!
Comment #18
andypostFiled follow-up #3262931: Remove drupal_required_modules() and mentions
It still needs commit to 9.4.x
Comment #19
volegerYes, the patch #10 was not applied for 9.4.x branch
Comment #20
xjmI added a 9.4.x test run.
Comment #21
voleger#10 3262805-10.patch has to go into 9.4.x
#13 3262805-13-10.0.x.patch already committed into 10.0.x
Comment #23
catchSorry folks of course this needs to go into 9.4.x too, committed the patch from #10 and pushed.