From: Cash Costello Date: Tue, 17 Jul 2012 02:30:20 +0000 (-0400) Subject: Fixes #4621 adds warning to remove_subtype() X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b164c39ac5c82b311e9ef07fa01fcc464bab86b1;p=lorea%2Felgg.git Fixes #4621 adds warning to remove_subtype() --- 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 *