diff options
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/install.inc b/includes/install.inc index 68a67bcd6..b3615f69e 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -199,7 +199,7 @@ function drupal_install_profile_distribution_name() { // At all other times, we load the profile via standard methods. else { $profile = drupal_get_profile(); - $info = install_profile_info($profile); + $info = system_get_info('module', $profile); return $info['distribution_name']; } } @@ -1199,6 +1199,10 @@ function drupal_check_module($module) { * installed, to be shown throughout the installation process. Defaults to * 'Drupal'. * + * Note that this function does an expensive file system scan to get info file + * information for dependencies. If you only need information from the info + * file itself, use system_get_info(). + * * Example of .info file: * @code * name = Minimal |