You are here

function fivestar_comment_create_vote in Fivestar 6.2

Create a vote array based on comment ID, node ID, and vote ID.

1 call to fivestar_comment_create_vote()
fivestar_comment in ./fivestar_comment.module
Implementation of hook_comment().

File

./fivestar_comment.module, line 246

Code

function fivestar_comment_create_vote($cid, $nid, $vote_id) {
  $vote = array();
  $vote['content_id'] = $nid;
  $vote['content_type'] = 'node';
  $vote['vote_id'] = $vote_id;
  return $vote;
}