This causes problems if there isn't an image.

function views_timelinejs_media_source_image_field_preparation($value, $options = array()) {
  return file_create_url($value['uri']);

Comments

fluxsauce’s picture

Status: Active » Needs review
StatusFileSize
new542 bytes
operinko’s picture

Status: Needs review » Fixed

I actually had something similiar already on my local repository, but I was only checking if $value is an array.
That in itself would imply that there was an image, but it's actually a good idea to also check for the ['uri'].

Fixed.

fluxsauce’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.