The status page should warn when two different types of field hooks are implemented by the same module.

Created on 23 September 2011, almost 13 years ago
Updated 8 February 2024, 7 months ago

Problem/Motivation

From #1199946-16: Disabled modules are broken beyond repair so the "disable" functionality needs to be removed

Modules can't implement more than one of hook_field_storage_info(), hook_field_info() or hook_entity_info() (and their _alter counterparts).

Proposed resolution

The attached patch adds a field_requirements() function that warns in the system status report when a module implements two or more different kinds of hooks, as forbidden above.

Remaining tasks

The patch needs to be reviewed by a core developer.

User interface changes

The status page will warn if a module breaks this particular rule.

API changes

None.

Feature request
Status

Closed: outdated

Version

9.5

Component
Field 

Last updated 1 day ago

Created by

🇺🇸United States pillarsdotnet

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • 🇳🇿New Zealand quietone New Zealand

    Based on #9 this is well outdated. If that is incorrect just re-open the issue and explain what still needs to be done.

    Thanks.

Production build 0.71.5 2024