You are here

function photos_album_share in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 inc/photos.album.inc \photos_album_share()

Photos album share.

1 string reference to 'photos_album_share'
photos_menu in ./photos.module
Implements hook_menu().

File

inc/photos.album.inc, line 249
Handles album views and content.

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' => url('photos/' . $type . '/' . $node->nid, array(
      'absolute' => TRUE,
    )),
  );
  print theme('photos_print', array(
    'content' => $content,
    'type' => 'share',
  ));
}