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 --- includes/module.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index 7cd13ec3d..f8a565746 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -123,6 +123,10 @@ function module_rebuild_cache() { // Merge in defaults and save. $files[$filename]->info = $file->info + $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', $files[$filename]->info, $files[$filename]); + // Log the critical hooks implemented by this module. $bootstrap = 0; foreach (bootstrap_hooks() as $hook) { -- cgit v1.2.3