diff options
| author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 22:59:36 +0000 | 
|---|---|---|
| committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 22:59:36 +0000 | 
| commit | 4be522d7544b1aca0e08828bee42a9be7345bf9c (patch) | |
| tree | bb1c2ce1f7f177b2de7bb9615c4e87ea58516945 /engine/lib/entities.php | |
| parent | c1c2563fc1cd451afaf735350eb1c576740be2f4 (diff) | |
| download | elgg-4be522d7544b1aca0e08828bee42a9be7345bf9c.tar.gz elgg-4be522d7544b1aca0e08828bee42a9be7345bf9c.tar.bz2  | |
Refs #2907. DRY'd up and abstracted out a lot of metadata / annotation functions so I can implement #1115 with a clean conscious.
git-svn-id: http://code.elgg.org/elgg/trunk@8207 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
| -rw-r--r-- | engine/lib/entities.php | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 781a744ad..4f58e96a8 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1345,6 +1345,17 @@ function disable_entity($guid, $reason = "", $recursive = true) {  						}  					} +					// disable annotations +					// Now delete the entity itself +//					$entity->clearMetadata(); +//					$entity->clearAnnotations(); +//					$entity->clearRelationships(); +// +//					$res = delete_data("DELETE from {$CONFIG->dbprefix}entities where guid={$guid}"); +//					if ($res) { +//						$sub_table = ""; +//					} +  					$__RECURSIVE_DELETE_TOKEN = null;  				}  | 
