function defaultconfig_admin in Default config 7
Main administration page callback.
1 string reference to 'defaultconfig_admin'
- defaultconfig_menu in ./
defaultconfig.module - Implements hook_menu().
File
- ./
defaultconfig.admin.inc, line 11 - Main administration page for default config.
Code
function defaultconfig_admin() {
$components = defaultconfig_get_components();
$page = array();
$page['tables'] = array(
'#type' => 'vertical_tabs',
);
foreach ($components as $hook => $component) {
$table = defaultconfig_component_table($component);
if ($table) {
$page['tables'][] = array(
'#title' => $component['label'],
'#type' => 'fieldset',
'table' => defaultconfig_component_table($component),
);
}
}
return $page;
}