views_embed_field_views_handler_field_thumbnail_path.inc 458 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Video embed field thumbnail_path column implementation.
  5. */
  6. /**
  7. * Defines a field handler that can display the thumbnail_path url instead of
  8. * the drupal internal uri.
  9. */
  10. class views_embed_field_views_handler_field_thumbnail_path extends views_handler_field {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. function get_value($values, $field = NULL) {
  15. $value = parent::get_value($values, $field);
  16. return file_create_url($value);
  17. }
  18. }