]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4621 adds warning to remove_subtype()
authorCash Costello <cash.costello@gmail.com>
Tue, 17 Jul 2012 02:30:20 +0000 (22:30 -0400)
committerCash Costello <cash.costello@gmail.com>
Tue, 17 Jul 2012 02:30:20 +0000 (22:30 -0400)
engine/lib/entities.php

index abfe072760a637d8476457df13b902b26f616ed5..66c1475b774ee5ce5f50978bd5aa77d1d41146c1 100644 (file)
@@ -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
  *