You are here

function photos_album_slide in Album Photos 6.2

Same name and namespace in other branches
  1. 7.3 inc/photos.album.inc \photos_album_slide()
1 string reference to 'photos_album_slide'
photos_menu in ./photos.module

File

inc/photos.album.inc, line 118

Code

function photos_album_slide($node) {
  if ($node->album['count'] || $node->subalbum['count']) {
    $type = $node->type == 'photos' ? 'album' : 'sub_album';
    _photos_breadcrumb(array(
      l(t('@name\'s albums', array(
        '@name' => $node->name,
      )), 'photos/user/' . $node->uid . '/album'),
      l($node->title, "photos/{$type}/{$node->nid}"),
    ));
    drupal_set_title(t('Slide: @title', array(
      '@title' => check_plain($node->title),
    )));
    $v = '<p>' . l(t('Back'), "photos/{$type}/{$node->nid}") . ' | ' . l(t('Share code'), "photos/{$type}/{$node->nid}/share", array(
      'query' => 'KeepThis=true&TB_iframe=true&height=450&width=650',
      'attributes' => array(
        'title' => t('Share code'),
        'class' => 'thickbox',
      ),
    )) . '</p>';
    $v .= _photos_slide($node);
  }
  else {
    $v = t('No image');
  }
  return $v;
}