I faced issue caused by calling function config_pages_get_types in hook_entity_info_alter.

It tries to load entity in the moment, when the entity info haven't been build completely.

For example module entity_translation generates error:
Warning: Invalid argument supplied for foreach() in /entity_translation/entity_translation.module on line 675

Because entity info missed required elements on that phase.

Comments

vtkachenko’s picture

Status: Active » Needs review
StatusFileSize
new1.85 KB

Please review my patch.

vtkachenko’s picture

Sorry to previous patch. It was buggy. Please test this one.

qwaygon’s picture

its better late than never :)
thank you for your patch, its applied in 1.7 version.

qwaygon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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