public static function VotingApi_Result::saveMultiple in Voting API 7.3
Save a bundle of vote results to the database.
This function is called by votingapi_recalculate_results() after tallying the values of all cast votes on a piece of content. This function will be of little use for most third-party modules, unless they manually insert their own result data.
Parameters
vote_results array of VotingApi_Result objects:
1 call to VotingApi_Result::saveMultiple()
- votingapi_recalculate_results in ./votingapi.module 
- Recalculates the aggregate results of all votes for a piece of content.
File
- ./votingapi.module, line 185 
- A generalized voting API for Drupal.
Class
Code
public static function saveMultiple($vote_results = array()) {
  if (is_object($vote_results)) {
    $vote_results = array(
      $vote_results,
    );
  }
  foreach ($vote_results as $vote_result) {
    $vote_result
      ->save();
  }
}