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

merge-requests/26/head
Dries Buytaert 2010-10-05 00:31:19 +00:00
parent 4633340d9b
commit 485946f296
4 changed files with 2 additions and 6 deletions

View File

@ -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,

View File

@ -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) {

View File

@ -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,
);

View File

@ -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,