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)

▾ 9 functions call system_settings_form()

comment_configure in modules/comment.module
Menu callback; presents the comment settings page.
filter_admin_configure in modules/filter.module
Menu callback; display settings defined by filters.
forum_admin_configure in modules/forum.module
Implementation of hook_settings
menu_configure in modules/menu.module
Menu callback; presents menu configuration options.
node_configure in modules/node.module
Menu callback; presents general node configuration options.
node_types_configure in modules/node.module
Menu callback; presents each node type configuration page.
system_site_settings in modules/system.module
Menu callback; displays a module's settings page.
system_theme_settings in modules/system.module
Menu callback; display theme configuration for entire site and individual themes.
user_configure in modules/user.module

Code

modules/system.module, line 746

<?php
function system_settings_form($form_id, $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');
  }

  return drupal_get_form($form_id, $form, 'system_settings_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.