As mentioned by recidive in #409750-33: Overhaul and extend node build modes:
"I'd like to see hook_view() and hook_node_view() [let's add hook_node_build_alter()] renamed to something else, maybe hook_build()? Later we can have hook_render() for rendering tasks? hook_view() made sense in the past, but don't make sense anymore IMO."

And by myself in #499192: Fix display and forms for "Fieldable terms" for the equivalents on the 'user side':
"user_build_content() and related hooks: hook_user_view(), hook_profile_alter()
(note: functions and hooks names consistency is terrible)"

Just saying, I don't intend to tackle this myself :-)

Comments

moshe weitzman’s picture

This issue would be great for one of you type A whitespace and consistency freaks :).

sun’s picture

Title: consistency in node/user render functions and hooks names » Inconsistency in entity view/build/build_alter function invocations and hook names
Priority: Normal » Critical
Issue tags: +Rendering, +D7 API clean-up

This issue would perfectly serve well as the follow-up issue for the changes in my patch in #607244: Decrease performance impact of contextual links. Could we agree on that?

Preparing issue properties for that.

sun’s picture

Component: other » base system
Category: bug » task
Priority: Critical » Normal

#607244: Decrease performance impact of contextual links brought comment, node, and user build + build_alter hooks into consistency.

So what's left here?

gisle’s picture

Issue summary: View changes
Issue tags: -D7 API clean-up +API clean-up

Renaming non-canonical duplicate tag. See #2426171: Multiple tags similar to 'API clean-up' for background.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.