diff options
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/includes/install.inc b/includes/install.inc index be8bc8944..d3aa86a4f 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -19,9 +19,10 @@ define('FILE_NOT_READABLE', 32); define('FILE_NOT_WRITABLE', 64); define('FILE_NOT_EXECUTABLE', 128); -// Initialize the update system if necessary -if (!$install) { - // Include install files for each installed module. +/** + * Initialize the update system by loading all installed module's .install files. + */ +function drupal_load_updates() { foreach (module_list() as $module) { $install_file = './'. drupal_get_path('module', $module) .'/'. $module .'.install'; if (is_file($install_file)) { @@ -30,7 +31,6 @@ if (!$install) { } } - /** * Returns an array of available schema versions for a module. * @@ -527,6 +527,20 @@ function drupal_install_fix_file($file, $mask, $message = TRUE) { } } + +/** + * Send the user to a different installer page. This issues an on-site HTTP + * redirect. Messages (and errors) are erased. + * + * @param $path + * An installer path. + */ +function install_goto($path) { + global $base_path; + header('Location: '. $base_path . $path); + exit(); +} + /** * Hardcoded function for doing the equivalent of theme('placeholder') * when the theme system is not available. |