function theme_panelizer_node_settings_page_form in Panelizer 7
Same name and namespace in other branches
- 6 includes/admin.inc \theme_panelizer_node_settings_page_form()
Format the output of the main settings form.
We want our checkboxes to show up in a table.
1 theme call to theme_panelizer_node_settings_page_form()
- panelizer_settings_page_form in includes/
admin.inc - Primary settings page.
File
- includes/
admin.inc, line 170 - Contains administrative forms and settings.
Code
function theme_panelizer_node_settings_page_form($variables) {
$element = $variables['form'];
// Render the 'node' table
$header = array(
t('Node type'),
t('Panelize'),
t('Provide default panel'),
t('Operations'),
);
$rows = array();
foreach (element_children($element) as $type) {
$rows[] = array(
drupal_render($element[$type]['title']),
drupal_render($element[$type]['status']),
drupal_render($element[$type]['default']),
drupal_render($element[$type]['links']),
);
}
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
));
// Render everything else
$output .= drupal_render_children($element);
return $output;
}