function system_settings_form


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.module system_settings_form($form)
cle7 system.module system_settings_form($form)
elmsmedia7 system.module system_settings_form($form)
icor7 system.module system_settings_form($form)
meedjum_blog7 system.module system_settings_form($form)
mooc7 system.module system_settings_form($form)

Sets up a form to save information automatically.

This function adds a submit handler and a submit button to a form array. The submit function saves all the data in the form, using variable_set(), to variables named the same as the keys in the form array. Note that this means you should normally prefix your form array keys with your module name, so that they are unique when passed into variable_set().

If you need to manipulate the data in a custom manner, you can either put your own submission handler in the form array before calling this function, or just use your own submission handler instead of calling this function.


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

Return value

The form structure.

See also


Related topics

112 calls to system_settings_form()
accessibility_content_admin_form in sites/all/modules/ulmus/accessibility/modules/accessibility_content/
accessibility_testswarm_admin_form in sites/all/modules/ulmus/accessibility/modules/accessibility_testswarm/
Admin form for users to define paths for automated accessibility testing.
admin_menu_theme_settings in sites/all/modules/ulmus/admin_menu/
Form builder function for module settings.
advagg_admin_settings_form in sites/all/modules/ulmus/advagg/
Form builder; Configure advagg settings.
advagg_bundler_admin_settings_form in sites/all/modules/ulmus/advagg/advagg_bundler/
Form builder; Configure advagg settings.

... See full list

4 string references to 'system_settings_form'
imageinfo_cache_admin_settings_form in sites/all/modules/ulmus/imageinfo_cache/
Form builder; Configure advagg settings.
rubik_theme in sites/all/themes/ulmus/rubik/template.php
Implementation of hook_theme().
system_theme in modules/system/system.module
Implements hook_theme().
tipsy_admin in sites/all/modules/ulmus/tipsy/
Implementation of tipsy admin form


modules/system/system.module, line 2755
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;