function mongodb_block_save_block in MongoDB 7
Unset block data and save the block collection.
Parameters
object $collection: MongoDB collection to use.
array $block: The block array.
1 call to mongodb_block_save_block()
- _mongodb_block_rehash in mongodb_block/mongodb_block.module 
- Updates the block collection with the blocks currently exported by modules.
File
- mongodb_block/mongodb_block.module, line 385 
- Controls the visual building blocks a page is constructed with.
Code
function mongodb_block_save_block($collection, array $block) {
  unset($block['module'], $block['delta'], $block['status']);
  $collection
    ->save($block, mongodb_default_write_options());
}