| 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 |
| 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 |
} |
} |