function theme_gathercontent_pages_form in GatherContent 7.2
Form theme handler for gathercontent_pages_form().
File
- includes/
pages.inc, line 70 - Contains selecting pages to process.
Code
function theme_gathercontent_pages_form($variables) {
$form = $variables['form'];
$rows = array();
foreach (element_children($form['page_list']) as $id) {
$rows[] = array(
'data' => array(
drupal_render($form['page_list'][$id]['page_state']),
array(
'data' => drupal_render($form['page_list'][$id]['page_name']),
'class' => 'page-name',
),
drupal_render($form['pages'][$id]),
),
);
}
$header = array(
array(
'data' => '',
'class' => 'page-state',
),
array(
'data' => t('Pages'),
'class' => 'page-name',
),
'<input type="checkbox" class="gc_toggle_all" />',
);
$output = drupal_render($form['page_header']);
$output .= drupal_render($form['page_options']);
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'gc_pagelist',
),
'empty' => t('No pages available.'),
));
$output .= drupal_render_children($form);
return $output;
}