hosting_platform_handler_field_release.inc

Classes

Namesort descending Description
hosting_platform_handler_field_release A handler for the Platform release field.

File

platform/includes/views/handlers/hosting_platform_handler_field_release.inc
View source
  1. <?php
  2. /**
  3. * A handler for the Platform release field.
  4. *
  5. * @ingroup views_field_handlers
  6. */
  7. class hosting_platform_handler_field_release extends views_handler_field {
  8. function render($values) {
  9. $node = node_load($values->nid);
  10. if (empty($node->release)) {
  11. return "";
  12. }
  13. return l("{$node->release->title} {$node->release->version}", "node/{$node->release->nid}");
  14. }
  15. }