You are here

function reviews_get_review_status in Reviews 7

Helper function to return the review status name form the ID.

1 call to reviews_get_review_status()
reviews_list in includes/reviews.admin.inc
Form builder for reviews moderation.

File

includes/reviews.api.inc, line 104
This file contains API functions for the reviews system.

Code

function reviews_get_review_status($sid) {
  $statuses = array(
    0 => '<span class="marker">' . t('Awaiting moderation') . '</span>',
    1 => t('Published'),
    2 => t('Rejected'),
  );
  return $statuses[$sid];
}