summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
commit7de41539df93abeea427c1aa83ee7e13684a4fc6 (patch)
treecbe403960892b0f34dbc2674bd068686b6b22693 /update.php
parente2f42cf3d544bc90accaab9eff800277ac60c9f1 (diff)
downloadbrdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.gz
brdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.bz2
- Patch #77919 by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model.
Diffstat (limited to 'update.php')
-rw-r--r--update.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/update.php b/update.php
index 039e882ac..5e4454fee 100644
--- a/update.php
+++ b/update.php
@@ -320,6 +320,15 @@ function update_selection_page() {
$output = '<p>The version of Drupal you are updating from has been automatically detected. You can select a different version, but you should not need to.</p>';
$output .= '<p>Click Update to start the update process.</p>';
+ drupal_set_title('Drupal database update');
+ // Prevent browser from using cached drupal.js or update.js
+ drupal_add_js('misc/update.js', TRUE);
+ $output .= drupal_get_form('update_script_selection_form');
+
+ return $output;
+}
+
+function update_script_selection_form() {
$form = array();
$form['start'] = array(
'#tree' => TRUE,
@@ -363,13 +372,7 @@ function update_selection_page() {
'#type' => 'submit',
'#value' => 'Update',
);
-
- drupal_set_title('Drupal database update');
- // Prevent browser from using cached drupal.js or update.js
- drupal_add_js('misc/update.js', TRUE);
- $output .= drupal_get_form('update_script_selection_form', $form);
-
- return $output;
+ return $form;
}
function update_update_page() {