- changed from a select to checkbox on edit account page.
- added a basic help text.4.0.x
parent
73430ade47
commit
30dd6ea68f
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue