You are here

function field_collection_views_handler_field_field_path::render in Field Collection Views 7

Same name and namespace in other branches
  1. 8 views/field_collection_views_handler_field_field_path.inc \field_collection_views_handler_field_field_path::render()

Work out the field_path

Overrides views_handler_field::render

File

views/field_collection_views_handler_field_field_path.inc, line 27
Contains the host_entity_path field handler.

Class

field_collection_views_handler_field_field_path
Field handler to display the host_entity_path

Code

function render($values) {
  $field_path = "";
  $item_id = $values->item_id;

  //debug($values);
  $field_collection_item = field_collection_item_load($item_id);
  $field_path = field_collection_field_get_path($field_collection_item
    ->fieldInfo());
  return $field_path;
}