diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-26 18:31:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-26 18:31:29 +0000 |
commit | f6b166ff23faa3ab8a2f643394842710dbecfd3d (patch) | |
tree | 871c742fb8e120901ec941b9062109df36d9c593 /includes/install.inc | |
parent | bc70eaeb8ddd78022ea6831ccb2e49b9cb653069 (diff) | |
download | brdo-f6b166ff23faa3ab8a2f643394842710dbecfd3d.tar.gz brdo-f6b166ff23faa3ab8a2f643394842710dbecfd3d.tar.bz2 |
- Patch #620298 by David_Rothstein: schema not available in hook_install().
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/includes/install.inc b/includes/install.inc index c3e0536c3..17225f562 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -542,31 +542,6 @@ function drupal_verify_profile($install_state) { } /** - * Callback to install an individual install profile module. - * - * Used during installation to install modules one at a time and then - * enable them, or to install a number of modules at one time - * from admin/modules. - * - * @param $module - * The machine name of the module to install. - * @return - * TRUE if the module got installed. - */ -function _drupal_install_module($module) { - if (drupal_get_installed_schema_version($module, TRUE) == SCHEMA_UNINSTALLED) { - drupal_load('module', $module); - drupal_install_schema($module); - // Now allow the module to perform install tasks. - module_invoke($module, 'install'); - $versions = drupal_get_schema_versions($module); - drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED); - system_list_reset(); - return TRUE; - } -} - -/** * Manually include all files for the active database. * * Because we have no registry yet, we need to manually include the |