Commit 30dd6ea6 authored by Kjartan's avatar Kjartan
Browse files

- changed from a select to checkbox on edit account page.

- added a basic help text.
parent 73430ade
...@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) { ...@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) {
$form = '<table border="0" cellpadding="2" cellspacing="2">'; $form = '<table border="0" cellpadding="2" cellspacing="2">';
while ($block = db_fetch_object($result)) { 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>'; $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.");
} }
} }
......
...@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) { ...@@ -253,11 +253,11 @@ function block_user($type, &$edit, &$user) {
$form = '<table border="0" cellpadding="2" cellspacing="2">'; $form = '<table border="0" cellpadding="2" cellspacing="2">';
while ($block = db_fetch_object($result)) { 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>'; $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.");
} }
} }
......
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