system_settings_form

Versions
4.6
system_settings_form($form)
4.7
system_settings_form($form_id, $form)
5 – 6
system_settings_form($form)
7
system_settings_form($form, $automatic_defaults = TRUE)

Add default buttons to a form and set its prefix.

See also

system_settings_form_submit()

Parameters

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

Return value

The form structure.

Related topics

▾ 28 functions call system_settings_form()

aggregator_admin_settings in modules/aggregator/aggregator.admin.inc
Form builder; Configure the aggregator system.
blogapi_admin_settings in modules/blogapi/blogapi.module
book_admin_settings in modules/book/book.admin.inc
Builds and returns the book settings form.
contact_admin_settings in modules/contact/contact.admin.inc
dblog_admin_settings in modules/dblog/dblog.admin.inc
dblog module settings form.
example_element_demo_form in developer/examples/example_element.module
This is a simple form to demonstrate how to use the phonenumber element we've defined.
filter_admin_configure in modules/filter/filter.admin.inc
Build a form to change the settings for a format's filters.
forum_admin_settings in modules/forum/forum.admin.inc
Form builder for the forum settings page.
menu_configure in modules/menu/menu.admin.inc
Menu callback; Build the form presenting menu configuration options.
node_configure in modules/node/node.admin.inc
Menu callback; presents general node configuration options.
search_admin_settings in modules/search/search.admin.inc
Menu callback; displays the search module settings page.
statistics_access_logging_settings in modules/statistics/statistics.admin.inc
Form builder; Configure access logging.
syslog_admin_settings in modules/syslog/syslog.module
system_admin_theme_settings in modules/system/system.admin.inc
Form builder; This function allows selection of the theme to show in administration sections.
system_clean_url_settings in modules/system/system.admin.inc
Form builder; Configure Clean URL settings.
system_date_time_settings in modules/system/system.admin.inc
Form builder; Configure the site date and time settings.
system_error_reporting_settings in modules/system/system.admin.inc
Form builder; Configure error reporting 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_performance_settings in modules/system/system.admin.inc
Form builder; Configure site performance 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_settings 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.
throttle_admin_settings in modules/throttle/throttle.admin.inc
Form builder; Configure the throttle system.
update_settings in modules/update/update.settings.inc
Form builder for the update settings tab.
upload_admin_settings in modules/upload/upload.admin.inc
Menu callback for the upload settings form.
user_admin_settings in modules/user/user.admin.inc
Form builder; Configure user settings for this site.

Code

modules/system/system.module, line 1071

<?php
function system_settings_form($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');
  }
  $form['#submit'][] = 'system_settings_form_submit';
  $form['#theme'] = 'system_settings_form';
  return $form;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.