You are here

function photos_edit_page in Album Photos 6.2

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

File

inc/photos.edit.inc, line 138

Code

function photos_edit_page($node) {
  $output = '<div id="photos_upload_new">' . drupal_get_form('photos_upload_form', $node, array(
    'submit' => true,
  )) . '</div>';
  if ($node->type == 'photos') {
    $output .= _photos_edit_page_album($node);
    drupal_set_title(t('Organize Albums: @title', array(
      '@title' => check_plain($node->title),
    )));
  }
  else {
    $output .= _photos_edit_page_node($node);
    drupal_set_title(t('Organize Sub-Album: @title', array(
      '@title' => check_plain($node->title),
    )));
  }
  return $output;
}