diff options
Diffstat (limited to 'modules/block/block.module')
-rw-r--r-- | modules/block/block.module | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 12b916ad0..3770bb277 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -469,8 +469,9 @@ function block_custom_block_form($edit = array()) { * @param $edit * Associative array of fields to save. Array keys: * - info: Block description. - * - body: Block contents. - * - format: Filter ID of the filter format for the body. + * - body: Associative array of body value and format. Array keys: + * - value: Block contents. + * - format: Filter ID of the filter format for the body. * @param $delta * Block ID of the block to save. * @return @@ -479,9 +480,9 @@ function block_custom_block_form($edit = array()) { function block_custom_block_save($edit, $delta) { db_update('block_custom') ->fields(array( - 'body' => $edit['body'], + 'body' => $edit['body']['value'], 'info' => $edit['info'], - 'format' => $edit['format'], + 'format' => $edit['body']['format'], )) ->condition('bid', $delta) ->execute(); |