diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-09-30 09:19:50 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-09-30 09:19:50 +0000 |
commit | 9e85e4b94995fbb5f73e73b3335ebdac9aae9802 (patch) | |
tree | 22f63a77af6703c1f76268fde12817e265a9ce9f /modules | |
parent | ba75605e89a951ad80aec63d03cce6016c081e79 (diff) | |
download | brdo-9e85e4b94995fbb5f73e73b3335ebdac9aae9802.tar.gz brdo-9e85e4b94995fbb5f73e73b3335ebdac9aae9802.tar.bz2 |
- fixing block configuration not working when user is disabling all blocks.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block.module | 8 | ||||
-rw-r--r-- | modules/block/block.module | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/modules/block.module b/modules/block.module index b7024dbca..ea30747df 100644 --- a/modules/block.module +++ b/modules/block.module @@ -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; } } diff --git a/modules/block/block.module b/modules/block/block.module index b7024dbca..ea30747df 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -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; } } |