summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/block.module4
-rw-r--r--modules/block/block.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/block.module b/modules/block.module
index 85d8413f4..9b9d64ee2 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) {
$form = '<table border="0" cellpadding="2" cellspacing="2">';
while ($block = db_fetch_object($result)) {
- $form .= "<tr><td>$block->name</td><td>". form_select(NULL, "block][$block->name", (isset($user->block[$block->name]) ? $user->block[$block->name] : $block->status), array(t("Disabled"), t("Enabled"))) ."</td></tr>\n";
+ $form .= "<tr><td>$block->name</td><td>". form_checkbox(NULL, "block][$block->name", 1, $user->block[$block->name]) ."</td></tr>\n";
}
$form .= '</table>';
- return form_item(t("Block configuration"), $form);
+ return form_item(t("Block configuration"), $form, "Enable the blocks you would like to see displayed in the side bars.");
}
}
diff --git a/modules/block/block.module b/modules/block/block.module
index 85d8413f4..9b9d64ee2 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) {
$form = '<table border="0" cellpadding="2" cellspacing="2">';
while ($block = db_fetch_object($result)) {
- $form .= "<tr><td>$block->name</td><td>". form_select(NULL, "block][$block->name", (isset($user->block[$block->name]) ? $user->block[$block->name] : $block->status), array(t("Disabled"), t("Enabled"))) ."</td></tr>\n";
+ $form .= "<tr><td>$block->name</td><td>". form_checkbox(NULL, "block][$block->name", 1, $user->block[$block->name]) ."</td></tr>\n";
}
$form .= '</table>';
- return form_item(t("Block configuration"), $form);
+ return form_item(t("Block configuration"), $form, "Enable the blocks you would like to see displayed in the side bars.");
}
}