summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-10-07 06:11:12 +0000
committerDries Buytaert <dries@buytaert.net>2005-10-07 06:11:12 +0000
commit7e1527ee61bc10b3765b95b9af8faaa2254da5a8 (patch)
tree2225c7f571b4a3f635564f8281406a12b2a271a7 /update.php
parent7b5b460534e5c54b07d28467c2aa2fc670c714e4 (diff)
downloadbrdo-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.php15
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() {