You are here

function _votingapi_insert_condition in Voting API 5

2 calls to _votingapi_insert_condition()
_votingapi_insert_set in ./votingapi_actions.module
_votingapi_update_set in ./votingapi_actions.module

File

./votingapi_actions.module, line 301

Code

function _votingapi_insert_condition($condition) {
  $vacid = db_next_id("{votingapi_action_condition}_vacid");
  $sql = "INSERT INTO {votingapi_action_condition} ";
  $sql .= "(vacid, vasid, name, description, data, handler, weight)";
  $sql .= "VALUES (%d, %d, '%s', '%s', '%s', '%s', %d)";
  db_query($sql, $vacid, $condition['vasid'], $condition['description'], $condition['name'], serialize($condition['data']), $condition['handler'], $condition['weight']);
}