function _votingapi_insert_condition in Voting API 5
2 calls to _votingapi_insert_condition()
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']);
}