From 3fdddd8e4bfcac30e263f24d7d5c7258be61025e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 27 Jun 2007 21:59:33 +0000 Subject: #152926 by dww: add hook_system_info_alter() to make .info file data modifiable in PHP code --- modules/system/system.module | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/system/system.module b/modules/system/system.module index dbb40ef93..e2d73b360 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1091,6 +1091,11 @@ function system_theme_data() { // Read info files for each theme foreach ($themes as $key => $theme) { $themes[$key]->info = drupal_parse_info_file($theme->filename) + $defaults; + + // 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]); + if (!empty($themes[$key]->info['base theme'])) { $sub_themes[] = $key; } -- cgit v1.2.3