diff options
Diffstat (limited to 'lib/class/democratic.class.php')
-rw-r--r-- | lib/class/democratic.class.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/class/democratic.class.php b/lib/class/democratic.class.php index 9a646859..c499d714 100644 --- a/lib/class/democratic.class.php +++ b/lib/class/democratic.class.php @@ -493,6 +493,20 @@ class Democratic extends tmpPlaylist { } // delete_votes /** + * delete_from_oid + * This takes an OID and type and removes the object from the democratic playlist + */ + public function delete_from_oid($oid,$object_type) { + + $row_id = $democratic ->get_uid_from_object_id($oid,$object_type); + if ($row_id) { $democratic->delete_votes($row_id); } + else { debug_event('Democratic','Unable to find Votes for ' . $oid . ' of type ' . $object_type,'3'); } + + return true; + + } // delete_from_oid + + /** * delete * This deletes a democratic playlist */ |