summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 5baafa8b3..1d53d8736 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2869,8 +2869,8 @@ function drupal_get_schema($name = NULL, $rebuild = FALSE) {
}
// Otherwise, rebuild the schema cache.
else {
- // Load the .schema files.
- module_load_all_includes('schema');
+ // Load the .install files to get hook_schema.
+ module_load_all_includes('install');
// Invoke hook_schema for all modules.
foreach (module_implements('schema') as $module) {
@@ -2960,8 +2960,8 @@ function drupal_uninstall_schema($module) {
* is returned.
*/
function drupal_get_schema_unprocessed($module, $table = NULL) {
- // Load the .schema file.
- module_load_include('schema', $module);
+ // Load the .install file to get hook_schema.
+ module_load_include('install', $module);
$schema = module_invoke($module, 'schema');
if (!is_null($table) && isset($schema[$table])) {