1 system.module | system_config_info() |
Implements hook_config_info().
File
- core/
modules/ system/ system.module, line 4167 - Configuration system that lets administrators modify the workings of the site.
Code
function system_config_info() {
$prefixes['system.core'] = array(
'label' => t('System core settings'),
'group' => t('Configuration'),
);
$prefixes['system.authorize'] = array(
'label' => t('System authorize'),
'group' => t('Configuration'),
);
$prefixes['system.date'] = array(
'label' => t('System date'),
'group' => t('Configuration'),
);
$prefixes['system.mail'] = array(
'label' => t('Mail systems'),
'group' => t('Configuration'),
);
// Register config files for all active themes.
$themes = list_themes();
foreach ($themes as $theme_name => $theme) {
// If the theme registers settings, it needs a config file.
if (theme_has_settings($theme_name) && $theme->status == 1) {
$prefixes[$theme_name . '.settings'] = array(
'label' => t('!theme settings', array('!theme' => $theme->info['name'])),
'group' => t('Configuration'),
);
}
}
return $prefixes;
}