diff options
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 * */ |