/[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.2.6, Tue Jun 30 22:47:12 2009 UTC revision 1.1.2.7, Wed Jul 1 00:28:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fivestar_comment.module,v 1.1.2.5 2009/04/10 17:50:58 quicksketch Exp $  // $Id: fivestar_comment.module,v 1.1.2.6 2009/06/30 22:47:12 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 181  function fivestar_comment_update($cid, $ Line 181  function fivestar_comment_update($cid, $
181   */   */
182  function fivestar_comment_insert($cid, $nid, $uid, $value) {  function fivestar_comment_insert($cid, $nid, $uid, $value) {
183    $vote = _fivestar_cast_vote('node', $nid, $value, 'vote', $uid);    $vote = _fivestar_cast_vote('node', $nid, $value, 'vote', $uid);
184    db_query('INSERT INTO {fivestar_comment} (cid, vote_id, value) VALUES (%d, %d)', $cid, $vote['user']['vote_id'], $value);    db_query('INSERT INTO {fivestar_comment} (cid, vote_id, value) VALUES (%d, %d, %d)', $cid, $vote['user']['vote_id'], $value);
185  }  }
186    
187  /**  /**

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

  ViewVC Help
Powered by ViewVC 1.1.2