diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-07 06:11:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-07 06:11:12 +0000 |
commit | 7e1527ee61bc10b3765b95b9af8faaa2254da5a8 (patch) | |
tree | 2225c7f571b4a3f635564f8281406a12b2a271a7 /update.php | |
parent | 7b5b460534e5c54b07d28467c2aa2fc670c714e4 (diff) | |
download | brdo-7e1527ee61bc10b3765b95b9af8faaa2254da5a8.tar.gz brdo-7e1527ee61bc10b3765b95b9af8faaa2254da5a8.tar.bz2 |
- 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.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 15 |
1 files changed, 12 insertions, 3 deletions
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() { |