Add a warning to remove_subtype()
|Reported by:||ewinslow||Owned by:|
It should be deprecated, have its guts removed, and recommend update_subtype instead.
Using this during deactivate makes the subtype receive a new id when the plugin is reactivated, meaning that all entities created with the old id look like they don't exist.
Instead, people should use update_subtype('type', 'subtype', ''); so that Elgg doesn't try to load the associated class for that subtype while the plugin is inactive.
Change History (3)
comment:2 Changed 10 months ago by cash
- Milestone changed from Elgg 1.9.0 to Elgg 1.8.9
- Priority changed from high to normal
- Summary changed from remove_subtype is evil to Add a warning to remove_subtype()