system_settings_form($form, $automatic_defaults = TRUE)Add default buttons to a form and set its prefix.
$form An associative array containing the structure of the form.
$automatic_defaults Automatically load the saved values for each field from the system variables (defaults to TRUE).
The form structure.
modules/system/system.module, line 2562
<?php
function system_settings_form($form, $automatic_defaults = TRUE) {
$form['actions']['#type'] = 'container';
$form['actions']['#attributes']['class'][] = 'form-actions';
$form['actions']['#weight'] = 100;
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save configuration'));
if ($automatic_defaults) {
$form = _system_settings_form_automatic_defaults($form);
}
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;
}
?>