Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
jsenich CreditAttribution: jsenich commentedNevermind. 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.
Comment #2
hefox CreditAttribution: hefox commentedDisable should be a safe operation. Eek!
Should this be a entities api issue?
Comment #3
Leeteq CreditAttribution: Leeteq commentedThis one is seemingly quite scary, should not be left open without further details.
Does it belong in the Entities API queue?