From a569729602b685a3cf9862b2f60124c1616cf3bd Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Fri, 26 Oct 2012 09:00:28 -0700 Subject: [PATCH] Issue #1802280 by mbrett5062: fix documentation of drupal_system_listing() --- core/includes/common.inc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index 6800fa5dda3..b8f093d349c 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -5099,12 +5099,15 @@ function drupal_cron_cleanup() { * @code * drupal_system_listing("/\.module$/", "modules", 'name', 0); * @endcode - * this function will search the site-wide modules directory (i.e., /modules/), - * your installation profile's directory (i.e., - * /profiles/your_site_profile/modules/), the all-sites directory (i.e., - * /modules/), and your site-specific directory (i.e., - * /sites/your_site_dir/modules/), in that order, and return information about - * all of the files ending in .module in those directories. + * the function will search the following directories in this order: + * - /core/modules. + * - /core/profiles/testing/modules (only if a test is being run). + * - /core/profiles/active_profile/modules or /profiles/active_profile/modules. + * - /modules (standard directory for your contrib/custom modules). + * - /sites/all/modules (legacy contrib/custom modules directory, see above). + * - /sites/your_site_dir/modules (for multisite installations). + * and return information about all of the files ending in .module in those + * directories. * * The information is returned in an associative array, which can be keyed on * the file name ($key = 'filename'), the file name without the extension ($key