diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 11:30:23 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 11:30:23 +0000 |
commit | 36b6cd71d265f151b72fc986a43d9041b638f5a8 (patch) | |
tree | cb4400068a043e43d7ce3b7084794cf10d599fd6 /engine | |
parent | 98b31fdc6b48e89c27763532d94f508015380bf1 (diff) | |
download | elgg-36b6cd71d265f151b72fc986a43d9041b638f5a8.tar.gz elgg-36b6cd71d265f151b72fc986a43d9041b638f5a8.tar.bz2 |
Refs #569, #570, #571: Added remove_all_private_settings()
git-svn-id: https://code.elgg.org/elgg/trunk@2470 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 8e28d4f52..85c68c1b6 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2232,6 +2232,20 @@ } /** + * Deletes all private settings for an entity. + * + * @param int $entity_guid The Entity GUID + * @return true|false depending on success + * + */ + function remove_all_private_settings($entity_guid) { + + global $CONFIG; + $entity_guid = (int) $entity_guid; + return delete_data("delete from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + } + + /** * Entities init function; establishes the page handler * */ |