You are here

function _picture_image_style_url in Picture 7

Same name and namespace in other branches
  1. 7.2 picture.module \_picture_image_style_url()

Wrapper around image_style_url() so we can return an empty image.

1 call to _picture_image_style_url()
theme_picture in ./picture.module
Returns HTML for a picture.

File

./picture.module, line 1466
Picture formatter.

Code

function _picture_image_style_url($style_name, $path) {
  if ($style_name == PICTURE_EMPTY_IMAGE) {
    return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
  }
  if ($style_name == PICTURE_ORIGINAL_IMAGE) {
    return file_create_url($path);
  }
  return image_style_url($style_name, $path);
}