function theme_defaultconfig_optional_admin in Default config 7
File
- ./
defaultconfig.admin.inc, line 167 - Main administration page for default config.
Code
function theme_defaultconfig_optional_admin(&$variables) {
$form =& $variables['form'];
$rows = array();
$output = '';
foreach (element_children($form['components']) as $component) {
foreach (element_children($form['components'][$component]) as $ext_name) {
$extension =& $form['components'][$component][$ext_name];
$item = array(
'#type' => 'item',
'#title' => $extension['#title'],
'#description' => $extension['#description'],
);
$title = $extension['#title'];
$description = $extension['#description'];
unset($extension['#title'], $extension['#description']);
$rows[] = array(
drupal_render($item),
drupal_render($extension),
);
}
}
if (count($rows)) {
$header = array(
t('Extension'),
t('Enabled'),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'entity_collection-table',
),
));
}
$output .= drupal_render_children($form);
return $output;
}