#21084, Node module is not marked "required", but is required by other required modules, patch by Robert Douglass

4.7.x
Gerhard Killesreiter 2006-02-27 14:41:05 +00:00
parent 29170c88f2
commit 9bb285aafa
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ function module_list($refresh = FALSE, $bootstrap = TRUE) {
}
if (!$list) {
$list = array('filter' => 'filter', 'system' => 'system', 'user' => 'user', 'watchdog' => 'watchdog');
$list = array('filter' => 'filter', 'node' => 'node', 'system' => 'system', 'user' => 'user', 'watchdog' => 'watchdog');
if ($bootstrap) {
$result = db_query("SELECT name, filename, throttle, bootstrap FROM {system} WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC");
}

View File

@ -933,7 +933,7 @@ function system_modules() {
// Handle status checkboxes, including overriding the generated
// checkboxes for required modules.
$form['status'] = array('#type' => 'checkboxes', '#default_value' => $status, '#options' => $options);
$required = array('block', 'filter', 'system', 'user', 'watchdog');
$required = array('block', 'filter', 'node', 'system', 'user', 'watchdog');
foreach ($required as $require) {
$form['status'][$require] = array('#type' => 'hidden', '#value' => 1, '#suffix' => t('required'));
}

View File

@ -933,7 +933,7 @@ function system_modules() {
// Handle status checkboxes, including overriding the generated
// checkboxes for required modules.
$form['status'] = array('#type' => 'checkboxes', '#default_value' => $status, '#options' => $options);
$required = array('block', 'filter', 'system', 'user', 'watchdog');
$required = array('block', 'filter', 'node', 'system', 'user', 'watchdog');
foreach ($required as $require) {
$form['status'][$require] = array('#type' => 'hidden', '#value' => 1, '#suffix' => t('required'));
}