function theme_og_panels_table in Organic groups 6
Same name and namespace in other branches
- 5.8 og_panels.module \theme_og_panels_table()
- 5 og_panels.module \theme_og_panels_table()
- 5.3 og_panels.module \theme_og_panels_table()
- 5.7 og_panels.module \theme_og_panels_table()
Wrangle the $form into a tabular listing of pages.
Return value
void
File
- modules/
og_panels/ og_panels.module, line 220
Code
function theme_og_panels_table($form) {
foreach (element_children($form['displays']) as $did) {
if (is_numeric($did)) {
$rows[] = array(
drupal_render($form['default_page'][$did]),
drupal_render($form['displays'][$did]['page_title']),
drupal_render($form['displays'][$did]['weight']),
drupal_render($form['displays'][$did]['edit content']),
drupal_render($form['displays'][$did]['change layout']),
drupal_render($form['displays'][$did]['edit layout settings']),
drupal_render($form['displays'][$did]['edit page']),
drupal_render($form['displays'][$did]['delete page']),
);
}
}
$output = drupal_render($form);
$header = array(
t('Home page'),
t('Title'),
t('Weight'),
array(
'align' => 'center',
'colspan' => 5,
'data' => t('Operations'),
),
);
return theme('table', $header, $rows) . $output;
}