Properly build page content for node_add_page() so other modules can alter it.

Created on 7 February 2012, about 13 years ago
Updated 18 March 2025, 17 days ago

Problem/Motivation

Like for too many other pages we are returning raw html when it would be really easy to return instead a renderable array.

This way other modules could just alter it instead of overriding the full page (with menu_alter()) and we would save a lot of clashes between contrib modules.

Some modules overriding this page (and then clashing) are: Panels, Internationalization.

Related #1431142: Name (add semantic indexes) for rows and columns for translation node overview table so other modules can alter content.

Proposed resolution

Remaining tasks

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

API changes

Feature request
Status

Closed: outdated

Version

11.0 🔥

Component

node system

Created by

🇪🇸Spain Jose Reyero

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024