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
Comment #1
vtkachenko commentedPlease review my patch.
Comment #2
vtkachenko commentedSorry to previous patch. It was buggy. Please test this one.
Comment #3
qwaygon commentedits better late than never :)
thank you for your patch, its applied in 1.7 version.
Comment #4
qwaygon commented