summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-11-11 08:48:22 +0000
committerDries Buytaert <dries@buytaert.net>2007-11-11 08:48:22 +0000
commit22dec0b63cd81732dc3af0f76018e008691b193e (patch)
treee258c38d3b780deb2fad6abde1e1e05e90285b1e /modules
parent073eb45833be1c36d804c456c1258a697353fc70 (diff)
downloadbrdo-22dec0b63cd81732dc3af0f76018e008691b193e.tar.gz
brdo-22dec0b63cd81732dc3af0f76018e008691b193e.tar.bz2
- Patch #187319 by quicksketch: don't enable the powered by Drupal block for existing sites, and better handle the default behavior.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install5
-rw-r--r--modules/system/system.module2
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index bd5a20f23..bcbff8847 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -281,8 +281,9 @@ function system_install() {
db_query("INSERT INTO {variable} (name, value) VALUES ('%s', '%s')", 'theme_default', 's:7:"garland";');
db_query("UPDATE {system} SET status = %d WHERE type = '%s' AND name = '%s'", 1, 'theme', 'garland');
- db_query("INSERT INTO {blocks} (module, delta, theme, status, pages) VALUES ('%s', '%s', '%s', %d, '%s')", 'user', '0', 'garland', 1, '');
- db_query("INSERT INTO {blocks} (module, delta, theme, status, pages) VALUES ('%s', '%s', '%s', %d, '%s')", 'user', '1', 'garland', 1, '');
+ db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s')", 'user', '0', 'garland', 1, 0, 'left', '');
+ db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s')", 'user', '1', 'garland', 1, 0, 'left', '');
+ db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, pages) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s')", 'system', '0', 'garland', 1, 10, 'footer', '');
db_query("INSERT INTO {node_access} (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (%d, %d, '%s', %d, %d, %d)", 0, 0, 'all', 1, 0, 0);
diff --git a/modules/system/system.module b/modules/system/system.module
index 4ad8f0d09..97463f137 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -508,8 +508,6 @@ function system_block($op = 'list', $delta = 0, $edit = NULL) {
$blocks[0] = array(
'info' => t('Powered by Drupal'),
'weight' => '10',
- 'status' => 1,
- 'region' => 'footer',
);
return $blocks;
case 'configure':