You are here

function hosting_platform_handler_field_sites::render in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 platform/includes/views/handlers/hosting_platform_handler_field_sites.inc \hosting_platform_handler_field_sites::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

platform/includes/views/handlers/hosting_platform_handler_field_sites.inc, line 9

Class

hosting_platform_handler_field_sites
A handler for the Platform sites field.

Code

function render($values) {
  $value = $values->{$this->field_alias};
  return hosting_site_count($value, array(
    HOSTING_SITE_ENABLED,
    HOSTING_SITE_DISABLED,
    HOSTING_SITE_QUEUED,
  ));
}