I'm not sure if this is a profile2 issue or an issue with the entity API, but I have a module that defines default profile types using hook_default_profile2_type(). If I disable the module, the types that my module defines get deleted from the profile_type table and all of the user profile records for those types get deleted from the profile table.

Comments

jsenich’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)

Nevermind. After some more digging it appears that this functions as designed and is happening as a result of entity_defaults_rebuild() in the Entity API.

hefox’s picture

Priority: Normal » Major
Status: Closed (works as designed) » Active

Disable should be a safe operation. Eek!

Should this be a entities api issue?

Leeteq’s picture

Issue summary: View changes

This one is seemingly quite scary, should not be left open without further details.
Does it belong in the Entities API queue?