You are here

function _question_rating_snip in Quiz 6.6

1 call to _question_rating_snip()
theme_qcollection_question_table in includes/qcollection/qcollection.pages.inc
Theme a table containing array of questions and options.

File

includes/qcollection/qcollection.pages.inc, line 43
User pages.

Code

function _question_rating_snip($question) {

  // will only be set if ratings are activated for the question type
  $isRated = (bool) variable_get('fivestar_style_' . $question->type, NULL);
  if ($isRated) {
    return '<div class="fivestar">' . fivestar_widget_form($question) . '</div>';
  }
  else {
    return '';
  }
}