From 4b635f6d0a21e9a1358a6f9540ef72a55682738b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 17 Mar 2007 18:30:14 +0000 Subject: - Patch #128081 by Eaton: remove #base, paving the path for a simpler form API. --- modules/system/system.module | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/system/system.module') 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' => '
', '#suffix' => '
'); $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; } -- cgit v1.2.3