function theme_configuration_table in Configuration Management 7.2
1 theme call to theme_configuration_table()
- configuration_ui_configuration_list in ui/
configuration_ui.admin.inc - Helper function for configuration lists.
File
- ui/
theme/ theme.inc, line 17 - Provide customizations for some components of the configuration UI.
Code
function theme_configuration_table($form) {
$element = $form['form'];
$rows = array();
$header = $element['#header'];
// Generate a table row for each selectable item in #options.
foreach (element_children($element['items']) as $key) {
$row = array();
$row['items'] = drupal_render($element['items'][$key]);
foreach (array_keys($header) as $item) {
$row[$item] = drupal_render($element[$item][$key]);
}
$rows[] = $row;
}
// Add an empty header or a "Select all" checkbox to provide room for the
// checkboxes/radios in the first table column.
// Add a "Select all" checkbox.
drupal_add_js('misc/tableselect.js');
array_unshift($header, array(
'class' => array(
'select-all',
),
));
return theme('table', array(
'header' => $header,
'rows' => $rows,
));
}