You are here

function _votingapi_delete_set in Voting API 5

2 calls to _votingapi_delete_set()
votingapi_actions_admin_delete_page_submit in ./votingapi_actions_ui.inc
_votingapi_update_set in ./votingapi_actions.module

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']);
}