You are here

function _votingapi_update_condition in Voting API 5

1 call to _votingapi_update_condition()
_votingapi_update_set in ./votingapi_actions.module

File

./votingapi_actions.module, line 359

Code

function _votingapi_update_condition($condition) {
  $sql = "UPDATE {votingapi_action_condition} SET ";
  $sql .= "name = '%s', description = '%s', data = '%s', handler = '%s', weight = %d ";
  $sql .= "WHERE vacid = %d";
  db_query($sql, $condition['description'], serialize($condition['data']), $condition['name'], $condition['handler'], $condition['weight'], $condition['vacid']);
}