function systeminfo_admin_overview_settings in System Information 7.3
Same name and namespace in other branches
- 6.3 systeminfo.admin.inc \systeminfo_admin_overview_settings()
Menu callback; configures the display.
1 string reference to 'systeminfo_admin_overview_settings'
- systeminfo_menu in ./
systeminfo.module - Implements hook_menu().
File
- ./
systeminfo.admin.inc, line 177 - Admin page callbacks for the systeminfo module.
Code
function systeminfo_admin_overview_settings($form, &$form_state) {
$form['systeminfo_overview_modules_datestamp'] = array(
'#type' => 'checkbox',
'#title' => t('Display date stamp of modules.'),
'#default_value' => variable_get('systeminfo_overview_modules_datestamp', 0),
);
$form['systeminfo_overview_themes_datestamp'] = array(
'#type' => 'checkbox',
'#title' => t('Display date stamp of themes.'),
'#default_value' => variable_get('systeminfo_overview_themes_datestamp', 0),
);
// Buttons
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
$form['actions']['cancel'] = array(
'#markup' => l(t('Cancel'), 'admin/reports/systeminfo'),
);
$form['#submit'][] = 'system_settings_form_submit';
if (!isset($form['#theme'])) {
$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;
}