summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 05:26:57 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 05:26:57 +0000
commit89d04ea78a1d422b2dc21cd9e6e10344674632a1 (patch)
treee31e54a385b067111c5c5db70c64ca467b488b52 /includes
parenta0ec577e5b3a55ddf0e4707c953f9fdbbd23b792 (diff)
downloadbrdo-89d04ea78a1d422b2dc21cd9e6e10344674632a1.tar.gz
brdo-89d04ea78a1d422b2dc21cd9e6e10344674632a1.tar.bz2
#561452 by pwolanin and David_Rothstein: Add API function to get module/theme info without rebuilding it.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
-rw-r--r--includes/install.inc4
-rw-r--r--includes/registry.inc2
-rw-r--r--includes/theme.inc4
-rw-r--r--includes/update.inc4
5 files changed, 9 insertions, 9 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 8532e46c7..aac56ef14 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -5527,10 +5527,10 @@ function drupal_flush_all_caches() {
// If invoked from update.php, we must not update the theme information in the
// database, or this will result in all themes being disabled.
if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
- _system_get_theme_data();
+ _system_rebuild_theme_data();
}
else {
- system_get_theme_data();
+ system_rebuild_theme_data();
}
drupal_theme_rebuild();
diff --git a/includes/install.inc b/includes/install.inc
index 2e1f256d8..69e49c951 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -559,7 +559,7 @@ function drupal_verify_profile($install_state) {
* Normally just testing wants to set this to TRUE.
*/
function drupal_install_modules($module_list = array(), $disable_modules_installed_hook = FALSE) {
- $files = system_get_module_data();
+ $files = system_rebuild_module_data();
$module_list = array_flip(array_values($module_list));
do {
$moved = FALSE;
@@ -654,7 +654,7 @@ function drupal_install_system() {
->execute();
// Now that we've installed things properly, bootstrap the full Drupal environment
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
- system_get_module_data();
+ system_rebuild_module_data();
}
/**
diff --git a/includes/registry.inc b/includes/registry.inc
index cf2c09757..2bc98e0b1 100644
--- a/includes/registry.inc
+++ b/includes/registry.inc
@@ -35,7 +35,7 @@ function _registry_rebuild() {
require_once DRUPAL_ROOT . '/includes/database/' . $driver . '/query.inc';
// Get current list of modules and their files.
- $modules = system_get_module_data();
+ $modules = system_rebuild_module_data();
// Get the list of files we are going to parse.
$files = array();
foreach ($modules as &$module) {
diff --git a/includes/theme.inc b/includes/theme.inc
index f17f10155..6edb3c735 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -569,7 +569,7 @@ function list_themes($refresh = FALSE) {
}
else {
// Scan the installation when the database should not be read.
- $themes = _system_get_theme_data();
+ $themes = _system_rebuild_theme_data();
}
foreach ($themes as $theme) {
@@ -2342,7 +2342,7 @@ function template_preprocess_maintenance_page(&$variables) {
global $theme;
// Retrieve the theme data to list all available regions.
- $theme_data = _system_get_theme_data();
+ $theme_data = _system_rebuild_theme_data();
$regions = $theme_data[$theme]->info['regions'];
// Get all region content set with drupal_add_region_content().
diff --git a/includes/update.inc b/includes/update.inc
index a4005d3ef..f66e734c4 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -37,8 +37,8 @@ function update_check_incompatibility($name, $type = 'module') {
// Store values of expensive functions for future use.
if (empty($themes) || empty($modules)) {
- $themes = _system_get_theme_data();
- $modules = system_get_module_data();
+ $themes = _system_rebuild_theme_data();
+ $modules = system_rebuild_module_data();
}
if ($type == 'module' && isset($modules[$name])) {