function theme_photos_editlist_form in Album Photos 7.3
Theme photos edit list.
File
- inc/
photos.edit.inc, line 972 - Handles uploading and editing images.
Code
function theme_photos_editlist_form($variables) {
$form = $variables['form'];
$header = array(
array(
'data' => _photos_del_checkbox(t('Select All')),
),
array(
'data' => t('Thumbnails'),
),
array(
'data' => t('Content'),
),
);
$rows = array();
foreach (element_children($form['photos']) as $key) {
$rows[] = array(
drupal_render($form['photos'][$key]['wid']) . drupal_render($form['photos'][$key]['del']),
array(
'data' => drupal_render($form['photos'][$key]['path']),
'class' => 'photos_edit_thumb',
),
'<div class="photos-edit-title">' . drupal_render($form['photos'][$key]['title']) . '</div><div class="photos-edit-des">' . drupal_render($form['photos'][$key]['des']) . '</div><div class="photos-edit-info">' . drupal_render($form['photos'][$key]['time']) . drupal_render($form['photos'][$key]['pid']) . '</div>',
);
}
if (!$rows) {
$rows[] = array(
array(
'data' => t('No image'),
'colspan' => '3',
),
);
}
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'photos_album_edit',
),
));
$output .= drupal_render_children($form);
return $output;
}