You are here

function library_handler_field_library_status::render in Library 6

Same name and namespace in other branches
  1. 6.2 includes/views/handlers/library_handler_field_library_status.inc \library_handler_field_library_status::render()
  2. 7 includes/views/handlers/library_handler_field_library_status.inc \library_handler_field_library_status::render()

File

includes/views/handlers/library_handler_field_library_status.inc, line 15

Class

library_handler_field_library_status
Display a node's status in the library as a whole

Code

function render($values) {
  $nid = $values->nid;
  $node = node_load($nid);
  $item = library_get_status_item($node);
  if ($item) {
    return library_get_status_text($item);
  }
  return '';
}