summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2010-10-05 00:31:19 (GMT)
committerDries Buytaert2010-10-05 00:31:19 (GMT)
commit485946f296213297eea4cc5661705cb3d2e470df (patch)
tree60de005fdc8351ddf6e08964917b4618151cbb5d
parent4633340d9b2ab71bbbffe4c7b2f81fdd5a557f41 (diff)
- 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 23b414c..de200d6 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 7459692..2ce39b6 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 ae7ada2..f3d97c5 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 0964420..810bd16 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,