You are here

function views_embed_field_views_handler_field_thumbnail_path::get_value in Video Embed Field 7.2

Get the value that's supposed to be rendered.

This api exists so that other modules can easy set the values of the field without having the need to change the render method as well.

Parameters

object $values: An object containing all retrieved values.

string $field: Optional name of the field where the value is stored.

Overrides views_handler_field::get_value

File

views/handlers/views_embed_field_views_handler_field_thumbnail_path.inc, line 17
Video embed field thumbnail_path column implementation.

Class

views_embed_field_views_handler_field_thumbnail_path
Defines a field handler that can display the thumbnail_path url instead of the drupal internal uri.

Code

function get_value($values, $field = NULL) {
  $value = parent::get_value($values, $field);
  return file_create_url($value);
}