/[drupal]/contributions/modules/fivestar/fivestar_comment.module
ViewVC logotype

Diff of /contributions/modules/fivestar/fivestar_comment.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.8, Tue Jun 30 22:47:13 2009 UTC revision 1.1.4.9, Wed Jul 1 00:28:51 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fivestar_comment.module,v 1.1.4.7 2009/04/10 21:25:20 quicksketch Exp $  // $Id: fivestar_comment.module,v 1.1.4.8 2009/06/30 22:47:13 quicksketch Exp $
3    
4  define('FIVESTAR_COMMENT_DISABLED', 0);  define('FIVESTAR_COMMENT_DISABLED', 0);
5  define('FIVESTAR_COMMENT_OPTIONAL', 1);  define('FIVESTAR_COMMENT_OPTIONAL', 1);
# Line 172  function fivestar_comment_update($cid, $ Line 172  function fivestar_comment_update($cid, $
172  function fivestar_comment_insert($cid, $nid, $uid, $value) {  function fivestar_comment_insert($cid, $nid, $uid, $value) {
173    $vote = _fivestar_cast_vote('node', $nid, $value, 'vote', $uid);    $vote = _fivestar_cast_vote('node', $nid, $value, 'vote', $uid);
174    votingapi_recalculate_results('node', $nid);    votingapi_recalculate_results('node', $nid);
175    db_query('INSERT INTO {fivestar_comment} (cid, vote_id, value) VALUES (%d, %d)', $cid, $vote->vote_id, $value);    db_query('INSERT INTO {fivestar_comment} (cid, vote_id, value) VALUES (%d, %d, %d)', $cid, $vote->vote_id, $value);
176  }  }
177    
178  /**  /**

Legend:
Removed from v.1.1.4.8  
changed lines
  Added in v.1.1.4.9

  ViewVC Help
Powered by ViewVC 1.1.2