hosting_platform_handler_field_sites.inc

Classes

Namesort descending Description
hosting_platform_handler_field_sites A handler for the Platform sites field.

File

platform/includes/views/handlers/hosting_platform_handler_field_sites.inc
View source
  1. <?php
  2. /**
  3. * A handler for the Platform sites field.
  4. *
  5. * @ingroup views_field_handlers
  6. */
  7. class hosting_platform_handler_field_sites extends views_handler_field {
  8. function render($values) {
  9. $value = $values->{$this->field_alias};
  10. return hosting_site_count($value, array(HOSTING_SITE_ENABLED, HOSTING_SITE_DISABLED, HOSTING_SITE_QUEUED));
  11. }
  12. }