function simplenews_statistics_handler_unsubscribes::construct in Simplenews Statistics 7
Same name and namespace in other branches
- 7.2 includes/views/handlers/simplenews_statistics_handler_unsubscribes.inc \simplenews_statistics_handler_unsubscribes::construct()
Add some required fields needed on render().
Overrides views_handler_field::construct
File
- includes/
views/ handlers/ simplenews_statistics_handler_unsubscribes.inc, line 15 - Definition of simplenews_statistics_handler_unsubscribes.
Class
- simplenews_statistics_handler_unsubscribes
- Description.
Code
function construct() {
parent::construct();
$this->additional_fields['nid'] = array(
'table' => 'node',
'field' => 'nid',
);
$this->additional_fields['send_start_timestamp'] = array(
'table' => 'simplenews_statistics',
'field' => 'send_start_timestamp',
);
$this->additional_fields['tid'] = array(
'table' => 'simplenews_newsletter',
'field' => 'tid',
);
}