From 7e1527ee61bc10b3765b95b9af8faaa2254da5a8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 7 Oct 2005 06:11:12 +0000 Subject: - Patch #29465: new form API by Adrian et al. TODO: + The contact.module was broken; a new patch for contact.module is needed. + Documentation is needed. + The most important modules need to be updated ASAP. --- update.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index d0f961efb..706988845 100644 --- a/update.php +++ b/update.php @@ -54,11 +54,20 @@ function update_selection_page() { $dates[$i] = "No updates available"; // make update form and output it. - $form = form_select("Perform updates from", "start", (isset($selected) ? $selected : -1), $dates, "This defaults to the first available update since the last update you performed."); - $form .= form_submit("Update"); + $form['start'] = array( + type => 'select', + title => t('Perform updates from'), + default_value => (isset($selected) ? $selected : -1), + options => $dates, + description => t('This defaults to the first available update since the last update you performed.') + ); + $form['submit'] = array( + type => 'submit', + value => t('Update') + ); drupal_set_title('Drupal database update'); - return form($form); + return drupal_get_form('update_script_selection_form', $form); } function update_do_updates() { -- cgit v1.2.3