Commit 485946f2 authored by Dries's avatar Dries

- Patch #908578 by jonhattan: dependents array key not used in any place across the code.

parent 4633340d
...@@ -740,7 +740,6 @@ function update_fix_d7_install_profile() { ...@@ -740,7 +740,6 @@ function update_fix_d7_install_profile() {
// Merge in defaults. // Merge in defaults.
$info = $info + array( $info = $info + array(
'dependencies' => array(), 'dependencies' => array(),
'dependents' => array(),
'description' => '', 'description' => '',
'package' => 'Other', 'package' => 'Other',
'version' => NULL, 'version' => NULL,
......
...@@ -857,8 +857,6 @@ function system_modules($form, $form_state = array()) { ...@@ -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 // If this module is required by other modules, list those, and then make it
// impossible to disable this one. // impossible to disable this one.
foreach ($module->required_by as $required_by => $v) { foreach ($module->required_by as $required_by => $v) {
......
...@@ -1566,7 +1566,7 @@ function system_schema() { ...@@ -1566,7 +1566,7 @@ function system_schema() {
'default' => 0, 'default' => 0,
), ),
'info' => array( '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', 'type' => 'blob',
'not null' => FALSE, 'not null' => FALSE,
), ),
...@@ -2505,7 +2505,7 @@ function system_update_7055() { ...@@ -2505,7 +2505,7 @@ function system_update_7055() {
db_change_field('sessions', 'session', 'session', $spec); db_change_field('sessions', 'session', 'session', $spec);
$spec = array( $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', 'type' => 'blob',
'not null' => FALSE, 'not null' => FALSE,
); );
......
...@@ -2277,7 +2277,6 @@ function _system_rebuild_module_data() { ...@@ -2277,7 +2277,6 @@ function _system_rebuild_module_data() {
// Set defaults for module info. // Set defaults for module info.
$defaults = array( $defaults = array(
'dependencies' => array(), 'dependencies' => array(),
'dependents' => array(),
'description' => '', 'description' => '',
'package' => 'Other', 'package' => 'Other',
'version' => NULL, 'version' => NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment