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

▾ 27 functions call system_settings_form()

aggregator_admin_settings in modules/aggregator/aggregator.module
blogapi_admin_settings in modules/blogapi/blogapi.module
comment_admin_settings in modules/comment/comment.module
Menu callback; presents the comment settings page.
contact_admin_settings in modules/contact/contact.module
drupal_distributed_authentication_settings in modules/drupal/drupal.module
drupal_sites_registry_settings in modules/drupal/drupal.module
example_element_demo in developer/examples/example_element.module
This is a simple form to demonstrate how to use the phonenumber form element we defined.
filter_admin_configure in modules/filter/filter.module
Menu callback; display settings defined by filters.
forum_admin_settings in modules/forum/forum.module
menu_configure in modules/menu/menu.module
Menu callback; presents menu configuration options.
node_configure in modules/node/node.module
Menu callback; presents general node configuration options.
search_admin_settings in modules/search/search.module
Menu callback; displays the search module settings page.
statistics_access_logging_settings in modules/statistics/statistics.module
system_admin_theme_settings in modules/system/system.module
This function allows selection of the theme to show in administration sections.
system_clean_url_settings in modules/system/system.module
system_date_time_settings in modules/system/system.module
system_error_reporting_settings in modules/system/system.module
system_file_system_settings in modules/system/system.module
system_image_toolkit_settings in modules/system/system.module
system_performance_settings in modules/system/system.module
system_rss_feeds_settings in modules/system/system.module
system_site_information_settings in modules/system/system.module
system_site_maintenance_settings in modules/system/system.module
system_theme_settings in modules/system/system.module
Menu callback; display theme configuration for entire site and individual themes.
throttle_admin_settings in modules/throttle/throttle.module
upload_admin_settings in modules/upload/upload.module
Menu callback for the upload settings form.
user_admin_settings in modules/user/user.module

Code

modules/system/system.module, line 1075

<?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['#base'] = '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.