summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-09 19:00:03 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-09 19:00:03 +0000
commit5d00d0d61f70710ebb0a557cdb370e855dd74b13 (patch)
tree505ef94a505d27dc824db485d2c7c04eae139785
parentb721f5e0e39a82baaeadf05f6ec170628ac15904 (diff)
downloadbrdo-5d00d0d61f70710ebb0a557cdb370e855dd74b13.tar.gz
brdo-5d00d0d61f70710ebb0a557cdb370e855dd74b13.tar.bz2
- Patch #623992 by sun: documentation updates for system_list().
-rw-r--r--includes/module.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/module.inc b/includes/module.inc
index b2b157686..6294bda8e 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -88,11 +88,17 @@ function module_list($refresh = FALSE, $bootstrap = FALSE, $sort = FALSE, $fixed
* Build a list of bootstrap modules and enabled modules and themes.
*
* @param $type
- * The type of list to return, either 'module', 'bootstrap', or 'theme'.
+ * The type of list to return:
+ * - module: All modules.
+ * - module_enabled: All enabled modules.
+ * - bootstrap: All enabled modules required for bootstrap.
+ * - theme: All themes.
+ * - theme_enabled: All enabled themes.
*
* @return
- * An associative array of modules or themes, keyed by name, with the minimum
- * data required to bootstrap.
+ * An associative array of modules or themes, keyed by name, and having the
+ * respective database row as value. For $type 'module_enabled' and
+ * 'bootstrap', the array values equal the keys.
*
* @see module_list()
* @see list_themes()
@@ -117,7 +123,7 @@ function system_list($type) {
foreach ($result as $record) {
// Build a list of all modules.
if ($record->type == 'module') {
- $lists['module'][$record->name] = $record->name;
+ $lists['module'][$record->name] = $record;
// Build a list of all enabled modules.
if ($record->status) {
$lists['module_enabled'][$record->name] = $record->name;