You are here

function _photos_slide in Album Photos 6.2

Same name and namespace in other branches
  1. 7.3 inc/photos.album.inc \_photos_slide()
2 calls to _photos_slide()
photos_album_share in inc/photos.album.inc
photos_album_slide in inc/photos.album.inc

File

inc/photos.album.inc, line 134

Code

function _photos_slide($node) {
  if ($node->album['slide']) {
    list($width, $height) = explode('x', $node->album['slide']);
  }
  else {
    list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));
  }
  $type = $node->type == 'photos' ? 'album' : 'sub_album';
  return dfgallery_html(array(
    'url' => url("photos/data/{$type}/{$node->nid}/json.json", array(
      'absolute' => true,
    )),
    'width' => $width,
    'height' => $height,
  ));
}