Commit 9e85e4b9 authored by Kjartan's avatar Kjartan

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

parent ba75605e
......@@ -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;
}
}
......
......@@ -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;
}
}
......
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