You are here

function photos_album_share in Album Photos 6.2

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

File

inc/photos.album.inc, line 107

Code

function photos_album_share($node) {
  $type = $node->type == 'photos' ? 'album' : 'sub_album';
  $content['flash'] = _photos_slide($node);
  $content['html'] = array(
    'image' => $node->album['cover']['url'] ? _photos_l($node->album['cover']['url']) : '',
    'title' => $node->title,
    'link' => _photos_l("photos/{$type}/{$node->nid}"),
  );
  print theme('photos_print', $content, 'share');
}