function _photos_edit_page_node in Album Photos 6.2
Same name and namespace in other branches
- 7.3 inc/photos.edit.inc \_photos_edit_page_node()
1 call to _photos_edit_page_node()
- photos_edit_page in inc/
photos.edit.inc
File
- inc/
photos.edit.inc, line 150
Code
function _photos_edit_page_node($node) {
if ($node->subalbum['count']) {
$term = _photos_order_value($_GET['field'], $_GET['sort'], 10);
$result = pager_query('SELECT f.filepath, f.filemime, f.timestamp, f.filename, f.filesize, n.title, u.uid, u.name, p.* FROM {files} f INNER JOIN {x_image} p ON f.fid = p.fid INNER JOIN {node} n ON p.pid = n.nid INNER JOIN {users} u ON f.uid = u.uid INNER JOIN {x_node} a ON p.fid = a.fid WHERE a.nid = %d' . $term['order'], $term['limit'], 0, NULL, $node->nid);
$output .= _photos_order_link("node/{$node->nid}/photos", $node->subalbum['count'], l(t('Album view'), "photos/sub_album/{$node->nid}"), 1);
$output .= '<div class="messages">' . t('Move image: Move out of the image, but it will not delete it.') . '</div>';
}
else {
return;
}
while ($data = db_fetch_array($result)) {
$images[] = photos_get_info(0, $data);
}
if ($images[0]['fid']) {
$images[0]['info'] = array(
'title' => $node->title,
'nid' => $node->nid,
'uid' => $node->uid,
);
$output .= theme('pager', NULL, $term['limit']);
$output .= drupal_get_form('photos_editlist', $images, 'node');
$output .= theme('pager', NULL, $term['limit']);
}
return $output;
}