function systeminfo_admin_drupal_settings in System Information 6.3
Same name and namespace in other branches
- 7.3 systeminfo.admin.drupal.inc \systeminfo_admin_drupal_settings()
Menu callback; configures the display.
1 string reference to 'systeminfo_admin_drupal_settings'
- systeminfo_menu in ./
systeminfo.module - Implementation of hook_menu().
File
- ./
systeminfo.admin.drupal.inc, line 211 - Admin Drupal page callbacks for the systeminfo module.
Code
function systeminfo_admin_drupal_settings() {
$form = array();
$form['systeminfo_drupal_modules_sort'] = array(
'#type' => 'radios',
'#title' => t('Modules list'),
'#default_value' => variable_get('systeminfo_drupal_modules_sort', 'name'),
'#options' => array(
'name' => t("Ascending sorted by module's name."),
'filename' => t("Ascending sorted by module's filename."),
'callup' => t("Ascending sorted by module's call-up."),
),
);
$form['systeminfo_drupal_themes_sort'] = array(
'#type' => 'radios',
'#title' => t('Themes list'),
'#default_value' => variable_get('systeminfo_drupal_themes_sort', 'name'),
'#options' => array(
'name' => t("Ascending sorted by theme's name."),
'filename' => t("Ascending sorted by theme's filename."),
),
);
// Buttons
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
$form['actions']['cancel'] = array(
'#value' => l(t('Cancel'), 'admin/reports/systeminfo/drupal'),
);
$form['#submit'][] = 'system_settings_form_submit';
$form['#theme'] = 'system_settings_form';
if (!empty($_POST) && form_get_errors()) {
drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
}
return $form;
}