diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 06:31:04 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 06:31:04 +0000 |
commit | d96bebfc254d7c33c302c6a4e575d756d1ff03ad (patch) | |
tree | efd9ff856a403e60eb620bbaff09739413436f72 | |
parent | fd68a992acd623b16e8620ca7d20445d6ffa9404 (diff) | |
download | brdo-d96bebfc254d7c33c302c6a4e575d756d1ff03ad.tar.gz brdo-d96bebfc254d7c33c302c6a4e575d756d1ff03ad.tar.bz2 |
#77549 by Moshe, improved install profile documentation.
-rw-r--r-- | modules/system/system.module | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 576702b01..30f4c9108 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -943,12 +943,13 @@ function system_default_region($theme) { /** * Returns an array of files objects of the given type from the site-wide - * directory (i.e. modules/), the all-sites directory (i.e. sites/all/modules/) - * and site-specific directory (i. e. sites/somesite/modules/). The returned - * array will be keyed using the key specified (name, basename, filename). Using - * name or basename will cause site- specific files to shadow files in the - * default directories. That is, if a file with the same name appears in both - * the site-wide directory and site-specific directory, only the site-specific + * directory (i.e. modules/), the all-sites directory (i.e. + * sites/all/modules/), the profiles directory, and site-specific directory + * (i.e. sites/somesite/modules/). The returned array will be keyed using the + * key specified (name, basename, filename). Using name or basename will cause + * site-specific files to be prioritized over similar files in the default + * directories. That is, if a file with the same name appears in both the + * site-wide directory and site-specific directory, only the site-specific * version will be included. * * @param $mask @@ -974,6 +975,10 @@ function system_listing($mask, $directory, $key = 'name', $min_depth = 1) { // Always search sites/all/* as well as the global directories $searchdir[] = 'sites/all'; + // The 'profiles' directory contains pristine collections of modules and + // themes as organized by a distribution. It is pristine in the same way + // that /modules is pristine for core; users should avoid changing anything + // there in favor of sites/all or sites/<domain> directories. if (file_exists("profiles/$profile/$directory")) { $searchdir[] = "profiles/$profile/$directory"; } |