You are here

function block_inject_system_info_alter in Block Inject 7

Implements hook_system_info_alter().

File

./block_inject.module, line 137
The Block Inject module functions.

Code

function block_inject_system_info_alter(&$info, $file, $type) {
  if ($type == 'theme') {

    // Using the deprecated function to retrieve the regions in order to avoid
    // problems during the update.php process.
    $regions = _block_inject_get_regions_old();

    // Add regions to the site.
    foreach ($regions as $region) {
      $info['regions']['block_inject-' . $region->id] = t('Block Inject: @title', array(
        '@title' => $region->region,
      ));
    }
  }
}