diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 55a888239..a2f671d30 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1656,28 +1656,6 @@ } /** - * Disables all of a user's entities - * - * @param int $owner_guid The owner GUID - * @return true|false Depending on success - */ - function disable_entities($owner_guid) { - - global $CONFIG; - $owner_guid = (int) $owner_guid; - if ($entity = get_entity($owner_guid)) { - if (trigger_elgg_event('disable',$entity->type,$entity)) { - if ($entity->canEdit()) { - $res = update_data("UPDATE {$CONFIG->dbprefix}entities set enabled='no' where owner_guid={$owner_guid} or container_guid = {$owner_guid}"); - return $res; - } - } - } - return false; - - } - - /** * Enable an entity again. * * @param int $guid |