summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-05 00:31:19 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-05 00:31:19 +0000
commit485946f296213297eea4cc5661705cb3d2e470df (patch)
tree60de005fdc8351ddf6e08964917b4618151cbb5d
parent4633340d9b2ab71bbbffe4c7b2f81fdd5a557f41 (diff)
downloadbrdo-485946f296213297eea4cc5661705cb3d2e470df.tar.gz
brdo-485946f296213297eea4cc5661705cb3d2e470df.tar.bz2
- Patch #908578 by jonhattan: dependents array key not used in any place across the code.
-rw-r--r--includes/update.inc1
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/system/system.install4
-rw-r--r--modules/system/system.module1
4 files changed, 2 insertions, 6 deletions
diff --git a/includes/update.inc b/includes/update.inc
index 23b414c60..de200d6b6 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -740,7 +740,6 @@ function update_fix_d7_install_profile() {
// Merge in defaults.
$info = $info + array(
'dependencies' => array(),
- 'dependents' => array(),
'description' => '',
'package' => 'Other',
'version' => NULL,
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 745969276..2ce39b653 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -857,8 +857,6 @@ function system_modules($form, $form_state = array()) {
}
}
- // Mark dependents disabled so the user cannot remove required modules.
- $dependents = array();
// If this module is required by other modules, list those, and then make it
// impossible to disable this one.
foreach ($module->required_by as $required_by => $v) {
diff --git a/modules/system/system.install b/modules/system/system.install
index ae7ada281..f3d97c567 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1566,7 +1566,7 @@ function system_schema() {
'default' => 0,
),
'info' => array(
- 'description' => "A serialized array containing information from the module's .info file; keys can include name, description, package, version, core, dependencies, dependents, and php.",
+ 'description' => "A serialized array containing information from the module's .info file; keys can include name, description, package, version, core, dependencies, and php.",
'type' => 'blob',
'not null' => FALSE,
),
@@ -2505,7 +2505,7 @@ function system_update_7055() {
db_change_field('sessions', 'session', 'session', $spec);
$spec = array(
- 'description' => "A serialized array containing information from the module's .info file; keys can include name, description, package, version, core, dependencies, dependents, and php.",
+ 'description' => "A serialized array containing information from the module's .info file; keys can include name, description, package, version, core, dependencies, and php.",
'type' => 'blob',
'not null' => FALSE,
);
diff --git a/modules/system/system.module b/modules/system/system.module
index 096442067..810bd1673 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2277,7 +2277,6 @@ function _system_rebuild_module_data() {
// Set defaults for module info.
$defaults = array(
'dependencies' => array(),
- 'dependents' => array(),
'description' => '',
'package' => 'Other',
'version' => NULL,