You are here

function theme_photos_editlist_x in Album Photos 6.2

File

inc/photos.edit.inc, line 345

Code

function theme_photos_editlist_x($form) {
  $header = array(
    array(
      'data' => _photos_del_checkbox(t('Select All')),
    ),
    array(
      'data' => t('Thumbnails'),
    ),
    array(
      'data' => t('Content'),
    ),
  );
  foreach (element_children($form) as $key) {
    $rows[] = array(
      drupal_render($form[$key]['wid']) . drupal_render($form[$key]['del']),
      array(
        'data' => drupal_render($form[$key]['path']),
        'class' => 'photos_edit_thumb',
      ),
      '<div class="photos-edit-filename">' . drupal_render($form[$key]['filename']) . '</div><div class="photos-edit-des">' . drupal_render($form[$key]['des']) . '</div><div class="photos-edit-info">' . drupal_render($form[$key]['time']) . drupal_render($form[$key]['pid']) . '</div>',
    );
  }
  if (!$rows) {
    $rows[] = array(
      array(
        'data' => t('No image'),
        'colspan' => '3',
      ),
    );
  }
  $output = theme('table', $header, $rows, array(
    'id' => 'photos_album_edit',
  ));
  return $output;
}