You are here

function _photos_l in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 photos.module \_photos_l()

Photos - return url.

8 calls to _photos_l()
photos_album_share in inc/photos.album.inc
Photos album share.
photos_data_album in inc/photos.data.inc
Album slideshow data.
photos_data_sub_block_slide in inc/photos.data.inc
Sub-album slideshow page.
photos_data_user_slide in inc/photos.data.inc
All user photos slideshow.
photos_down_page in inc/photos.down.inc
Photos download (share) page.

... See full list

File

./photos.module, line 2296
Implementation of photos.module.

Code

function _photos_l($path, $style_name = 'thumbnail') {
  $image_url = '';
  if ($style_name == 'original') {
    $image_styles = image_style_options(FALSE);
    if (isset($image_styles['original'])) {
      $image_url = image_style_url($style_name, $path);
    }
    else {
      $image_url = file_create_url($path);
    }
  }
  else {
    $image_url = image_style_url($style_name, $path);
  }
  return $image_url;
}