aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/classes/ElggEntity.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 96d18142f..3df4b7a0c 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -996,10 +996,12 @@ abstract class ElggEntity extends ElggData implements
/**
* Delete this entity.
*
+ * @param bool $recursive Whether to delete all the entities contained by this entity
+ *
* @return bool
*/
- public function delete() {
- return delete_entity($this->get('guid'));
+ public function delete($recursive = true) {
+ return delete_entity($this->get('guid'), $recursive);
}
/*
@@ -1061,15 +1063,6 @@ abstract class ElggEntity extends ElggData implements
return $this->get('geo:long');
}
- /**
- * Return the entity's location
- *
- * @return string
- */
- public function getLocation() {
- return $this->get('location');
- }
-
/*
* NOTABLE INTERFACE
*/