You are here

function IpUserCountField::render in IP address manager 7.2

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

src/Plugin/views/field/IpUserCountField.php, line 19
Contains the ip_views_handler_field_user_count class.

Class

IpUserCountField
A handler to provide proper displays IP Long values

Code

function render($values) {
  $value = $this
    ->get_value($values);
  $count = !empty($value) ? ip_tracker_ip_user_count(long2ip($value)) : 0;
  return $count;
}