Problem/Motivation
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/node/...
This is a procedural function in node.module that was previously used by statistics and forum modules. It is no longer used by Drupal core. It also has a pretty unique signature in that it takes a database result object, which wouldn't be really that useful.
Proposed resolution
Deprecate the function without replacement.
Statistics module has already done this https://git.drupalcode.org/project/statistics/-/commit/f583d9755acd97c5f...
Forum module will need similar (although much simpler) treatment in https://git.drupalcode.org/project/forum/-/blob/1.x/src/Plugin/Block/For...
The remaining usages of the function all look to be Drupal 7 modules https://git.drupalcode.org/search?group_id=2&repository_ref=11.x&scope=b...
Remaining tasks
Deprecate it
API changes
node_title_list is deprecated
Issue fork drupal-3531953
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3531953-deprecate-nodetitlelist
changes, plain diff MR !12452
Comments
Comment #2
acbramley commentedComment #4
virag.jain commentedWorking on it.
Comment #6
virag.jain commentedComment #7
smustgrave commentedShould be deprecated for 11.3
Comment #8
acbramley commentedComment #9
acbramley commentedComment #10
smustgrave commentedThanks! And the CR updates look great. Seems like a good deprecation.
Comment #13
catchJust for fun I ran
git log -S node_title_listThis function was added in 2002 with more or less the same signature -
git show a6c8b10d8e07075f2bbafor the details.Committed/pushed to 11.x, thanks!