You are here

function systeminfo_admin_overview_settings in System Information 6.3

Same name and namespace in other branches
  1. 7.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
Implementation of hook_menu().

File

./systeminfo.admin.inc, line 180
Admin page callbacks for the systeminfo module.

Code

function systeminfo_admin_overview_settings() {
  $form = array();
  $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']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  $form['actions']['cancel'] = array(
    '#value' => l(t('Cancel'), 'admin/reports/systeminfo'),
  );
  $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;
}