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

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

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

revision 1.21, Tue Jun 30 23:48:03 2009 UTC revision 1.22, Wed Jul 1 00:01:17 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fivestar.module,v 1.20 2009/06/30 22:59:17 quicksketch Exp $  // $Id: fivestar.module,v 1.21 2009/06/30 23:48:03 quicksketch Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 387  function fivestar_get_votes($type, $cid, Line 387  function fivestar_get_votes($type, $cid,
387   * @return boolean   * @return boolean
388   */   */
389  function fivestar_validate_target($type, $id, $tag, $uid = NULL) {  function fivestar_validate_target($type, $id, $tag, $uid = NULL) {
390    if (!isset($account)) {    if (!isset($uid)) {
391      $uid = $GLOBALS['user']->uid;      $uid = $GLOBALS['user']->uid;
392    }    }
393    
# Line 415  function fivestar_validate_target($type, Line 415  function fivestar_validate_target($type,
415   *   Identifier within the type (in this case nid).   *   Identifier within the type (in this case nid).
416   * @param $tag   * @param $tag
417   *   The VotingAPI tag string.   *   The VotingAPI tag string.
418   * @param $account   * @param $uid
419   *   The user trying to cast the vote.   *   The user ID trying to cast the vote.
420   *   *
421   * @return boolean or NULL   * @return boolean or NULL
422   *   Returns TRUE if voting is supported on this object.   *   Returns TRUE if voting is supported on this object.
# Line 539  function fivestar_link($type, $node = NU Line 539  function fivestar_link($type, $node = NU
539    
540    
541  function fivestar_block($op = 'list', $delta = 0, $edit = array()) {  function fivestar_block($op = 'list', $delta = 0, $edit = array()) {
   global $user;  
542    switch ($op) {    switch ($op) {
543      case 'list':      case 'list':
544        $blocks[0]['info'] = t('Fivestar: Rate this node');        $blocks[0]['info'] = t('Fivestar: Rate this node');

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.2