/[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.13.2.66, Wed Jul 1 03:27:22 2009 UTC revision 1.13.2.67, Wed Jul 1 04:03:50 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fivestar.module,v 1.13.2.65 2009/07/01 03:02:11 quicksketch Exp $  // $Id: fivestar.module,v 1.13.2.66 2009/07/01 03:27:22 quicksketch Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 913  function fivestar_fivestar_widgets() { Line 913  function fivestar_fivestar_widgets() {
913  function fivestar_nodeapi(&$node, $op, $teaser, $page) {  function fivestar_nodeapi(&$node, $op, $teaser, $page) {
914    switch ($op) {    switch ($op) {
915      case 'view':      case 'view':
916        if (!in_array($node->build_mode, array(NODE_BUILD_PREVIEW, NODE_BUILD_SEARCH_INDEX, NODE_BUILD_SEARCH_RESULT)) && !isset($node->modr8_form_teaser) && variable_get('fivestar_'. $node->type, 0)) {        $exclude_modes = array(
917            NODE_BUILD_PREVIEW,
918            NODE_BUILD_SEARCH_INDEX,
919            NODE_BUILD_SEARCH_RESULT,
920            NODE_BUILD_RSS,
921          );
922          if (!in_array($node->build_mode, $exclude_modes) && !isset($node->modr8_form_teaser) && variable_get('fivestar_'. $node->type, 0)) {
923          if ($teaser) {          if ($teaser) {
924            $position = variable_get('fivestar_position_teaser_'. $node->type, 'above');            $position = variable_get('fivestar_position_teaser_'. $node->type, 'above');
925          }          }

Legend:
Removed from v.1.13.2.66  
changed lines
  Added in v.1.13.2.67

  ViewVC Help
Powered by ViewVC 1.1.2