function _votingapi_delete_set in Voting API 5
2 calls to _votingapi_delete_set()
File
- ./
votingapi_actions.module, line 370
Code
function _votingapi_delete_set($set) {
if (is_array($set['sets'])) {
foreach ($set['sets'] as $subset) {
_votingapi_delete_set($subset);
}
}
db_query("DELETE FROM {votingapi_action_condition} WHERE vasid = %d", $set['vasid']);
db_query("DELETE FROM {votingapi_action} WHERE vasid = %d", $set['vasid']);
db_query("DELETE FROM {votingapi_action_set} WHERE vasid = %d", $set['vasid']);
}