function better_statistics_handler_field_block_ip::pre_query in Better Statistics 7
Ensure the IP and IID of the blocked hostname is available.
Overrides views_handler::pre_query
File
- views/
better_statistics_handler_field_block_ip.inc, line 24 - Views field handler to supply a block/unblock IP link.
Class
- better_statistics_handler_field_block_ip
- A field handler to provide block/unblock IP operation links.
Code
function pre_query() {
parent::pre_query();
$this
->add_additional_fields(array(
array(
'table' => 'blocked_ips',
'field' => 'iid',
),
array(
'table' => 'accesslog',
'field' => 'hostname',
),
));
}