aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-16 22:30:20 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-16 22:30:20 -0400
commitb164c39ac5c82b311e9ef07fa01fcc464bab86b1 (patch)
tree81de91128d4832531cbf20a15a2f92eec0797e18 /engine/lib
parentba8e725dbfead01810edb8619ecd0ec054a75812 (diff)
downloadelgg-b164c39ac5c82b311e9ef07fa01fcc464bab86b1.tar.gz
elgg-b164c39ac5c82b311e9ef07fa01fcc464bab86b1.tar.bz2
Fixes #4621 adds warning to remove_subtype()
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php4
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
*