You are here

function fivestar_get_position in Fivestar 6.2

1 call to fivestar_get_position()
fivestar_nodeapi in ./fivestar.module
Implementation of hook_nodeapi().

File

./fivestar.module, line 481
A simple n-star voting widget, usable in other forms.

Code

function fivestar_get_position($type, $teaser, $tag) {
  if ($teaser) {
    $teaser = '_teaser';
  }
  else {
    $teaser = '';
  }
  $var = variable_get('fivestar_position' . $teaser . '_' . $type . '_' . $tag, 0);
  return $var;
}