system_settings_form

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 8 system_settings_form($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

▾ 25 functions call system_settings_form()

book_admin_settings in modules/book/book.admin.inc
Builds and returns the book settings form.
forum_admin_settings in modules/forum/forum.admin.inc
Form builder for the forum settings page.
locale_language_providers_session_form in modules/locale/locale.admin.inc
The URL language provider configuration form.
locale_language_providers_url_form in modules/locale/locale.admin.inc
The URL language provider configuration form.
menu_configure in modules/menu/menu.admin.inc
Menu callback; Build the form presenting menu configuration options.
render_example_demo_form in examples/render_example/render_example.module
Builds the form that offers options of what items to show.
search_admin_settings in modules/search/search.admin.inc
Menu callback: displays the search module settings page.
simpletest_settings_form in modules/simpletest/simpletest.pages.inc
Provides settings form for SimpleTest variables.
statistics_settings_form in modules/statistics/statistics.admin.inc
Form builder; Configure access logging.
system_clean_url_settings in modules/system/system.admin.inc
Form builder; Configure clean URL settings.
system_cron_settings in modules/system/system.admin.inc
Form builder; Cron form.
system_date_time_settings in modules/system/system.admin.inc
Form builder; Configure the site date and time settings.
system_file_system_settings in modules/system/system.admin.inc
Form builder; Configure the site file handling.
system_image_toolkit_settings in modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.
system_logging_settings in modules/system/system.admin.inc
Form builder; Configure error reporting settings.
system_performance_settings in modules/system/system.admin.inc
Form builder; Configure site performance settings.
system_regional_settings in modules/system/system.admin.inc
Form builder; Configure the site regional settings.
system_rss_feeds_settings in modules/system/system.admin.inc
Form builder; Configure how the site handles RSS feeds.
system_site_information_settings in modules/system/system.admin.inc
Form builder; The general site information form.
system_site_maintenance_mode in modules/system/system.admin.inc
Form builder; Configure the site's maintenance status.
system_theme_settings in modules/system/system.admin.inc
Form builder; display theme configuration for entire site and individual themes.
update_settings in modules/update/update.settings.inc
Form builder for the update settings tab.
user_admin_settings in modules/user/user.admin.inc
Form builder; Configure user settings for this site.
xmlrpc_example_alter_form in examples/xmlrpc_example/xmlrpc_example.module
Present a form to enable or disable the code implemented in hook_xmlrpc_alter.
xmlrpc_example_server_form in examples/xmlrpc_example/xmlrpc_example.module
Present a form to configure the service options. In this case the maximum and minimum values for any of the operations (add or subtraction).

Code

modules/system/system.module, line 2736

<?php
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;
}
?>