While porting a module to D8 and getting familiar with the handful of changes between D7 and D8, I saw a reference in node_page_title that said @see node_menu(). After a bit of digging, I confirmed that node_menu() no longer exists.

I initially was going to remove just the @see to remove a little confusion, but then did a little more digging and it seems node_page_title isn't used either. It's unclear to me if the function needs to be defined for the two migrate_drupal/src/Tests referencing it for D6 and D7:
https://api.drupal.org/api/drupal/core!modules!node!node.module/function...

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug|Task cleanup of existing code
Issue priority Minor|Normal because the impact is honestly not that much, but its one small thing less to care about.
Disruption No disruption, as if anyone was still using it, they are doing it wrong anyway. This function was de facto deprecated already.
CommentFileSizeAuthor
#2 drupal-remove-node_page_title-2546662.patch662 bytesjeremy

Comments

Jeremy created an issue. See original summary.

jeremy’s picture

StatusFileSize
new662 bytes

Attached patch removes the entire function; if it's actually needed, then perhaps we could just remove the erroneous @see node_menu() which is confusing to people reading the code.

dawehner’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
Issue tags: +Quickfix

Yeah less code!

I think the two places in migrate are just part of a DB dump of the menu_router table. Given that the string menu_router is not used anywhere anymore,
it is doubtful that these dumps itself are really useful.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs change record

Yes this is dead code that can be removed under the beta evaluation policy but I think we need a CR so any contrib will know and know what to do instead.

jeremy’s picture

Status: Needs work » Needs review
borisson_’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs change record

Change record looks sufficient, removed the tag and set back to RTBC.

  • alexpott committed 09a0c9f on 8.0.x
    Issue #2546662 by Jeremy: Remove node_page_title and inaccurate...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 09a0c9f and pushed to 8.0.x. Thanks!

Thanks for adding the beta evaluation and the issue summary.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.