diff options
Diffstat (limited to 'lib/Group/database.php')
-rw-r--r-- | lib/Group/database.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Group/database.php b/lib/Group/database.php index e3e6c825b9f..aea27a3d6d8 100644 --- a/lib/Group/database.php +++ b/lib/Group/database.php @@ -67,6 +67,18 @@ class OC_GROUP_DATABASE extends OC_GROUP_BACKEND { } /** + * Try to delete a group + * + * @param string $groupName The name of the group to delete + */ + public static function deleteGroup( $gid ){ + $query = OC_DB::prepare( "DELETE FROM `*PREFIX*groups` WHERE `gid` = ?" ); + $result = $query->execute( array( $gid )); + + return true; + } + + /** * Check if a user belongs to a group * * @param string $username Name of the user to check |