- fixing block configuration not working when user is disabling all blocks.

4.1.x
Kjartan Mannes 2002-09-30 09:19:50 +00:00
parent ba75605e89
commit 9e85e4b949
2 changed files with 14 additions and 2 deletions

View File

@ -274,7 +274,13 @@ function block_user($type, &$edit, &$user) {
if (isset($form)) {
return form_item(t("Block configuration"), '<table border="0" cellpadding="2" cellspacing="2">'. $form .'</table>', t("Enable the blocks you would like to see displayed in the side bars."));
}
break;
case "edit_validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
return $edit;
break;
}
}

View File

@ -274,7 +274,13 @@ function block_user($type, &$edit, &$user) {
if (isset($form)) {
return form_item(t("Block configuration"), '<table border="0" cellpadding="2" cellspacing="2">'. $form .'</table>', t("Enable the blocks you would like to see displayed in the side bars."));
}
break;
case "edit_validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
return $edit;
break;
}
}