#1375452: Renaming a content type bundle causes notices on manage fields page (test improvements) is one of a long list of issues regarding weird race conditions in entity info. Not to mention when a module is disabled, you can't get any information about its entities or bundles at all.

hook_node_type_info() is almost deprecated in Drupal 7 since we added node_type_save() a while back, and only poll module uses it in core now.

If we remove hook_node_type_info(), the main barrier would be altering or appending to the information dynamically, for example what RDF module does with hook_entity_info_alter(). We could probably handle that by a mixture of allowing appending to configuration via configuration objects (heyrocker has talked about this a bit), and crud functions to actually alter data.

Comments

bleen’s picture

I assume you mean hook_node_info (not hook_node_type_info) which is used by forum & poll?

Berdir’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

I think we can safely close this issue now :)