You are here

function simplenews_statistics_handler_subscribers::render in Simplenews Statistics 7

Same name and namespace in other branches
  1. 7.2 includes/views/handlers/simplenews_statistics_handler_subscribers.inc \simplenews_statistics_handler_subscribers::render()

Renders the field handler.

Overrides views_handler_field::render

File

includes/views/handlers/simplenews_statistics_handler_subscribers.inc, line 50
Definition of simplenews_statistics_handler_subscribers.

Class

simplenews_statistics_handler_subscribers
Description.

Code

function render($values) {
  $subscriber_count = $values->simplenews_newsletter_sent_subscriber_count;
  if ($subscriber_count == 0) {
    $subscriber_count = simplenews_statistics_count_subscribers($values->nid);
  }
  return $subscriber_count;
}