You are here

public function reviews_handler_field_review::render in Reviews 7

Render.

Overrides views_handler_field::render

File

views/reviews_handler_field_review.inc, line 18

Class

reviews_handler_field_review
Custom handler for reviews.

Code

public function render($values) {
  $review = unserialize($values->reviews_review);
  if (!is_null($review)) {
    return check_markup($review['value'], $review['format']);
  }
  else {
    return '';
  }
}