You are here

function mongodb_block_mongodb_block_info_alter in MongoDB 7

Implements hook_mongodb_block_info_alter().

File

mongodb_block/mongodb_block.module, line 292
Controls the visual building blocks a page is constructed with.

Code

function mongodb_block_mongodb_block_info_alter(&$blocks) {

  // Enable the main content block if it is not already enabled.
  if (empty($blocks['system_main']['status'])) {
    $blocks['system_main']['region'] = 'content';
    $blocks['system_main']['weight'] = 0;
    $blocks['system_main']['status'] = 1;
  }
}