- fixing block configuration not working when user is disabling all blocks.
parent
ba75605e89
commit
9e85e4b949
|
@ -274,7 +274,13 @@ function block_user($type, &$edit, &$user) {
|
||||||
if (isset($form)) {
|
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."));
|
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)) {
|
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."));
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue