function field_collection_views_handler_field_host_entity_type::render in Field Collection Views 7
Same name and namespace in other branches
- 8 views/field_collection_views_handler_field_host_entity_type.inc \field_collection_views_handler_field_host_entity_type::render()
Work out the host_entity_type
Overrides views_handler_field::render
File
- views/
field_collection_views_handler_field_host_entity_type.inc, line 27 - Contains the host_entity_path field handler.
Class
- field_collection_views_handler_field_host_entity_type
- Field handler to display the host_entity_path
Code
function render($values) {
$host_entity_type = "";
$item_id = $values->item_id;
//debug($values);
$field_collection_item = field_collection_item_load($item_id);
$host_entity_type = $field_collection_item
->hostEntityType();
return $host_entity_type;
}