Same name and namespace in other branches
  1. 4.6.x modules/system.module \system_settings_form()
  2. 5.x modules/system/system.module \system_settings_form()
  3. 6.x modules/system/system.module \system_settings_form()
  4. 7.x modules/system/system.module \system_settings_form()
9 calls to system_settings_form()
comment_configure in modules/comment.module
Menu callback; presents the comment settings page.
filter_admin_configure in modules/filter.module
Menu callback; display settings defined by filters.
forum_admin_configure in modules/forum.module
Implementation of hook_settings
menu_configure in modules/menu.module
Menu callback; presents menu configuration options.
node_configure in modules/node.module
Menu callback; presents general node configuration options.

... See full list

1 string reference to 'system_settings_form'
contact_admin_settings in modules/contact.module
Settings tab. Using a form rather than hook_settings().

File

modules/system.module, line 746
Configuration system that lets administrators modify the workings of the site.

Code

function system_settings_form($form_id, $form) {
  $form['buttons']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  $form['buttons']['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset to defaults'),
  );
  if (!empty($_POST) && form_get_errors()) {
    drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
  }
  return drupal_get_form($form_id, $form, 'system_settings_form');
}