diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-17 18:30:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-17 18:30:14 +0000 |
commit | 4b635f6d0a21e9a1358a6f9540ef72a55682738b (patch) | |
tree | 2b789c7c25f3670f676c8e029249582497e3c060 /modules/system | |
parent | f6929dcca0870e6d38654a126fe4f6c422cd9936 (diff) | |
download | brdo-4b635f6d0a21e9a1358a6f9540ef72a55682738b.tar.gz brdo-4b635f6d0a21e9a1358a6f9540ef72a55682738b.tar.bz2 |
- Patch #128081 by Eaton: remove #base, paving the path for a simpler form API.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 18d2bd949..b219c2f6f 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1075,7 +1075,9 @@ function system_settings_form($form) { 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'; + $form['#submit']['system_settings_form_submit'] = array(); + $form['#validate']['system_settings_form_validate'] = array(); + $form['#theme'] = 'system_settings_form'; return $form; } @@ -2163,7 +2165,9 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL, $form['actions'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>'); $form['actions']['submit'] = array('#type' => 'submit', '#value' => $yes ? $yes : t('Confirm')); $form['actions']['cancel'] = array('#value' => $cancel); - $form['#base'] = 'confirm_form'; + $form['#submit']['confirm_form_submit'] = array(); + $form['#validate']['confirm_form_validate'] = array(); + $form['#theme'] = 'confirm_form'; return $form; } |