diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-16 22:30:20 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-16 22:30:20 -0400 |
commit | b164c39ac5c82b311e9ef07fa01fcc464bab86b1 (patch) | |
tree | 81de91128d4832531cbf20a15a2f92eec0797e18 /engine/lib/entities.php | |
parent | ba8e725dbfead01810edb8619ecd0ec054a75812 (diff) | |
download | elgg-b164c39ac5c82b311e9ef07fa01fcc464bab86b1.tar.gz elgg-b164c39ac5c82b311e9ef07fa01fcc464bab86b1.tar.bz2 |
Fixes #4621 adds warning to remove_subtype()
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index abfe07276..66c1475b7 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -313,6 +313,10 @@ function add_subtype($type, $subtype, $class = "") { /** * Removes a registered ElggEntity type, subtype, and classname. * + * @warning You do not want to use this function. If you want to unregister + * a class for a subtype, use update_subtype(). Using this function will + * permanently orphan all the objects created with the specified subtype. + * * @param string $type Type * @param string $subtype Subtype * |