Skip to content
Snippets Groups Projects
Commit 94f5eee1 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- adding admin module to module_list.

parent 1e7ef0cf
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -49,7 +49,7 @@ function module_list($refresh = 0) { ...@@ -49,7 +49,7 @@ function module_list($refresh = 0) {
} }
if (!$list) { if (!$list) {
$list = array("system" => "system", "user" => "user", "watchdog" => "watchdog"); $list = array("admin" => "admin", "system" => "system", "user" => "user", "watchdog" => "watchdog");
$result = db_query("SELECT name, filename FROM system WHERE type = 'module' AND status = '1' ORDER BY name"); $result = db_query("SELECT name, filename FROM system WHERE type = 'module' AND status = '1' ORDER BY name");
while ($module = db_fetch_object($result)) { while ($module = db_fetch_object($result)) {
if (file_exists($module->filename)) { if (file_exists($module->filename)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment