summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-13 16:38:43 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-13 16:38:43 +0000
commitfbfa7a4150a40d6df9347692bb6681f45f804c7d (patch)
tree425db0f6cc7b72b8a9350c5a462fe718e0ed2877 /modules/system
parentf67e438b4196a6bc79c0da576da0a9e09fedb612 (diff)
downloadbrdo-fbfa7a4150a40d6df9347692bb6681f45f804c7d.tar.gz
brdo-fbfa7a4150a40d6df9347692bb6681f45f804c7d.tar.bz2
- Patch #593522 by sun: a better and faster drupal_alter().
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 483ea8643..0e932863d 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1916,7 +1916,8 @@ function _system_rebuild_module_data() {
// Invoke hook_system_info_alter() to give installed modules a chance to
// modify the data in the .info files if necessary.
- drupal_alter('system_info', $modules[$key]->info, $modules[$key], 'module');
+ $type = 'module';
+ drupal_alter('system_info', $modules[$key]->info, $modules[$key], $type);
}
// The install profile is required.
@@ -2009,7 +2010,8 @@ function _system_rebuild_theme_data() {
// Invoke hook_system_info_alter() to give installed modules a chance to
// modify the data in the .info files if necessary.
- drupal_alter('system_info', $themes[$key]->info, $themes[$key], 'theme');
+ $type = 'theme';
+ drupal_alter('system_info', $themes[$key]->info, $themes[$key], $type);
if (!empty($themes[$key]->info['base theme'])) {
$sub_themes[] = $key;