You are here

function mediafront_get_image in MediaFront 6

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_get_image()

Returns an image field path provided the ImageCache preset name and file name.

1 call to mediafront_get_image()
mediafront_playlist_node in ./mediafront.module
Implementation of hook_playlist_node()

File

./mediafront.module, line 812

Code

function mediafront_get_image($preset_name, $filename) {
  return file_create_url(file_directory_path() . '/imagecache/' . $preset_name . '/' . $filename);
}