You are here

node_field_handler_field_node_field.inc in Node Field 7.2

Handler for node_fields field for views.

File

views/handlers/node_field_handler_field_node_field.inc
View source
<?php

/**
 * @file
 * Handler for node_fields field for views.
 */

/**
 * Display node fields from the node.
 */
class node_field_handler_field_node_field extends views_handler_field {

  /**
   * Render node fields.
   */
  public function render($values) {
    $node_fields_content = '';
    $params = [
      'nid' => $values->nid,
    ];
    $node_fields = node_field_db_field_select($params);
    if ($node_fields) {
      $to_render = node_field_node_content_add_node_fields($node_fields);
      $node_fields_content = drupal_render($to_render);
    }
    return $node_fields_content;
  }

}

Classes

Namesort descending Description
node_field_handler_field_node_field Display node fields from the node.