Saves a user-created block in the database.
$edit: Associative array of fields to save. Array keys:
$delta: Block ID of the block to save.
Always returns TRUE.
function block_custom_block_save($edit, $delta) {
db_update('block_custom')
->fields(array(
'body' => $edit['body']['value'],
'info' => $edit['info'],
'format' => $edit['body']['format'],
))
->condition('bid', $delta)
->execute();
return TRUE;
}