Commit beada936 authored by Steven Wittens's avatar Steven Wittens
Browse files

Remove left-overs from admin.module.

parent 9d809b87
......@@ -775,7 +775,6 @@ CREATE TABLE watchdog (
-- Insert some default values
--
INSERT INTO system VALUES ('modules/admin.module','admin','module','',1,0,0);
INSERT INTO system VALUES ('modules/block.module','block','module','',1,0,0);
INSERT INTO system VALUES ('modules/comment.module','comment','module','',1,0,0);
INSERT INTO system VALUES ('modules/filter.module','filter','module','',1,0,0);
......
......@@ -762,7 +762,6 @@ CREATE TABLE watchdog (
-- Insert some default values
--
INSERT INTO system VALUES ('modules/admin.module','admin','module','',1,0,0);
INSERT INTO system VALUES ('modules/block.module','block','module','',1,0,0);
INSERT INTO system VALUES ('modules/comment.module','comment','module','',1,0,0);
INSERT INTO system VALUES ('modules/filter.module','filter','module','',1,0,0);
......
......@@ -91,7 +91,8 @@
"2004-11-15" => "update_112",
"2004-11-28" => "update_113",
"2004-12-05" => "update_114",
"2005-01-07" => "update_115"
"2005-01-07" => "update_115",
"2005-01-14" => "update_116"
);
function update_32() {
......@@ -2078,6 +2079,10 @@ function update_115() {
return $ret;
}
function update_116() {
return array(update_sql("DELETE FROM {system} WHERE name = 'admin'"));
}
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);
......
......@@ -45,7 +45,7 @@ function module_list($refresh = FALSE, $bootstrap = FALSE) {
}
if (!$list) {
$list = array('admin' => 'admin', 'filter' => 'filter', 'system' => 'system', 'user' => 'user', 'watchdog' => 'watchdog');
$list = array('filter' => 'filter', '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");
}
......
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