You are here

function _photos_edit_page_album in Album Photos 7.3

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

Album image management page.

1 call to _photos_edit_page_album()
photos_edit_page in inc/photos.edit.inc
Image management.

File

inc/photos.edit.inc, line 646
Handles uploading and editing images.

Code

function _photos_edit_page_album($node) {
  $output = '';
  if (isset($node->album['count'])) {
    $album_count = $node->album['count'];
  }
  else {
    $album_count = 0;
  }
  if (isset($node->album['count'])) {
    $images = _photos_edit_page_album_images($node->nid);
    $output .= _photos_order_link('node/' . $node->nid . '/photos', $node->album['count'], l(t('Album view'), 'photos/album/' . $node->nid), 1);
  }
  else {
    return;
  }
  $output .= '<div id="photos-editlist-form-wrapper">';
  $output .= _photos_prep_editlist($images);
  $output .= '</div>';
  return $output;
}