I wanna link node and comment for same function as sum votes by node. Why it doesn't work?

create vote

 $votes[] = array(
    'content_type' => 'comment',
    'content_id' => $cid,
    'value_type' => 'points',
    'value' => $value,
    'tag' => $nid,
    );
    votingapi_set_votes($votes);

sum

$results = votingapi_select_results($criteria = array (
'tag' => $nid,
'function' => 'sum',)
);

Please, help)

Comments

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 is no longer supported. Closing old issues to clean up the issue queue.

Please reopen and update this issue if this is still an issue in the D7 or D8 version.