You are here

function theme_nodequeue_generate_form in Nodequeue 6.2

Same name and namespace in other branches
  1. 5.2 nodequeue_generate.module \theme_nodequeue_generate_form()

File

./nodequeue_generate.module, line 72

Code

function theme_nodequeue_generate_form($form) {
  $output = drupal_render($form['help']);
  $children = element_children($form['rows']);
  unset($children[array_search('cb', $children)]);
  foreach ($children as $qid) {
    $rows[] = array(
      drupal_render($form['rows']['cb'][$qid]),
      drupal_render($form['rows'][$qid]['nodequeue-title']),
      drupal_render($form['rows'][$qid]['nodequeue-max-nodes']),
      drupal_render($form['rows'][$qid]['nodequeue-subqueues']),
    );
  }
  $header = array(
    theme('table_select_header_cell'),
    t('Title'),
    t('Max nodes'),
    t('Subqueues'),
  );
  $output .= theme('table', $header, $rows);
  $output .= theme('pager', NULL, 25);
  $output .= drupal_render($form);
  return $output;
}