diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-07 06:19:20 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-07 06:19:20 +0000 |
commit | c897e89dbe8d552088e5b80019deb964f90bc32c (patch) | |
tree | b6374719e88d65256875f4b292a527df0ccb54e3 /includes/install.inc | |
parent | b52cdd773c10df895f306f4956e8b8294d875c0f (diff) | |
download | brdo-c897e89dbe8d552088e5b80019deb964f90bc32c.tar.gz brdo-c897e89dbe8d552088e5b80019deb964f90bc32c.tar.bz2 |
#420358 by yoroy, David_Rothstein, JacobSingh, et al: Rename core's installation profiles to be more clear.
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/includes/install.inc b/includes/install.inc index fcbf8ea15..02d2e3452 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -167,22 +167,17 @@ function drupal_set_installed_schema_version($module, $version) { } /** - * Loads the install profile definition, extracting its defined name. + * Loads the install profile, extracting its defined distribution name. * * @return - * The name defined in the profile's _profile_details() hook. + * The distribution name defined in the profile's .info file. Defaults to + * "Drupal" if none is explicitly provided by the install profile. + * + * @see install_profile_info() */ -function drupal_install_profile_name() { +function drupal_install_profile_distribution_name() { global $install_state; - - if (isset($install_state['profile_info']['name'])) { - $name = $install_state['profile_info']['name']; - } - else { - $name = 'Drupal'; - } - - return $name; + return $install_state['profile_info']['distribution_name']; } /** @@ -1063,15 +1058,22 @@ function drupal_check_module($module) { /** * Retrieve info about an install profile from its .info file. * - * Information stored in the profile.info file: + * The information stored in a profile .info file is similar to that stored in + * a normal Drupal module .info file. For example: * - name: The real name of the install profile for display purposes. * - description: A brief description of the profile. * - dependencies: An array of shortnames of other modules this install profile requires. * + * Additional, less commonly-used information that can appear in a profile.info + * file but not in a normal Drupal module .info file includes: + * - distribution_name: The name of the Drupal distribution that is being + * installed, to be shown throughout the installation process. Defaults to + * 'Drupal'. + * * Example of .info file: * @verbatim - * name = Drupal (minimal) - * description = Create a Drupal site with only required modules enabled. + * name = Minimal + * description = Start fresh, with only a few modules enabled. * dependencies[] = block * dependencies[] = dblog * @endverbatim @@ -1091,6 +1093,7 @@ function install_profile_info($profile, $locale = 'en') { $defaults = array( 'dependencies' => array(), 'description' => '', + 'distribution_name' => 'Drupal', 'version' => NULL, 'php' => DRUPAL_MINIMUM_PHP, ); |