You are here

class library_handler_field_library_status 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
  2. 7 includes/views/handlers/library_handler_field_library_status.inc \library_handler_field_library_status

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

Hierarchy

Expanded class hierarchy of library_handler_field_library_status

1 string reference to 'library_handler_field_library_status'
library_views_data in includes/views/library.views.inc
Implementation of hook_views_data()

File

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

View source
class library_handler_field_library_status extends views_handler_field {
  function construct() {
    parent::construct();
  }
  function query() {
    $this
      ->ensure_my_table();
  }
  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 '';
  }

}

Members