function system_settings_form

7.x system.module system_settings_form($form)

Add default buttons to a form and set its prefix.


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

Return value

The form structure.

See also


Related topics

22 calls to system_settings_form()
book_admin_settings in drupal/modules/book/
Form constructor for the book settings form.
forum_admin_settings in drupal/modules/forum/
Form constructor for the forum settings page.
locale_language_providers_session_form in drupal/modules/locale/
The URL language provider configuration form.
locale_language_providers_url_form in drupal/modules/locale/
The URL language provider configuration form.
menu_configure in drupal/modules/menu/
Menu callback; Build the form presenting menu configuration options.

... See full list

1 string reference to 'system_settings_form'
system_theme in drupal/modules/system/system.module
Implements hook_theme().


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


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;