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() {
// Merge in defaults.
$info = $info + array(
'dependencies' => array(),
'dependents' => array(),
'description' => '',
'package' => 'Other',
'version' => NULL,
......
......@@ -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) {
......
......@@ -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,
);
......
......@@ -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,
......
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