You are here

function simplenews_statistics_handler_opens::construct in Simplenews Statistics 7

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

Add some required fields needed on render().

Overrides views_handler_field::construct

File

includes/views/handlers/simplenews_statistics_handler_opens.inc, line 15
Definition of simplenews_statistics_handler_opens.

Class

simplenews_statistics_handler_opens
Description.

Code

function construct() {
  parent::construct();
  $this->additional_fields['nid'] = array(
    'table' => 'node',
    'field' => 'nid',
  );
  $this->additional_fields['sent_subscriber_count'] = array(
    'table' => 'simplenews_newsletter',
    'field' => 'sent_subscriber_count',
  );
}