You are here

function theme_node_admin_nodes in Drupal 4

Same name and namespace in other branches
  1. 5 modules/node/node.module \theme_node_admin_nodes()
  2. 6 modules/node/node.admin.inc \theme_node_admin_nodes()

Theme node administration overview.

File

modules/node.module, line 1190
The core that allows content to be submitted to the site.

Code

function theme_node_admin_nodes($form) {

  // Overview table:
  $header = array(
    NULL,
    t('Title'),
    t('Type'),
    t('Author'),
    t('Status'),
    t('Operations'),
  );
  $output .= form_render($form['options']);
  if (isset($form['title']) && is_array($form['title'])) {
    foreach (element_children($form['title']) as $key) {
      $row = array();
      $row[] = form_render($form['nodes'][$key]);
      $row[] = form_render($form['title'][$key]);
      $row[] = form_render($form['name'][$key]);
      $row[] = form_render($form['username'][$key]);
      $row[] = form_render($form['status'][$key]);
      $row[] = form_render($form['operations'][$key]);
      $rows[] = $row;
    }
  }
  else {
    $rows[] = array(
      array(
        'data' => t('No posts available.'),
        'colspan' => '6',
      ),
    );
  }
  $output .= theme('table', $header, $rows);
  if ($form['pager']['#value']) {
    $output .= form_render($form['pager']);
  }
  $output .= form_render($form);
  return $output;
}