function system_settings_form

Add default buttons to a form and set its prefix.

Parameters

$form: An associative array containing the structure of the form.

Return value

The form structure.

See also

system_settings_form_submit()

Related topics

3 calls to system_settings_form()
system_file_system_settings in drupal/core/modules/system/system.admin.inc
Form builder; Configure the site file handling.
system_image_toolkit_settings in drupal/core/modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.
system_theme_settings in drupal/core/modules/system/system.admin.inc
Form builder; display theme configuration for entire site and individual themes.
1 string reference to 'system_settings_form'
system_config_form in drupal/core/modules/system/system.module
Adds default behavior to a configuration form.

File

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

Code

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

  // By default, render the form using theme_system_settings_form().
  if (!isset($form['#theme'])) {
    $form['#theme'] = 'system_settings_form';
  }
  return $form;
}