You are here

function datex_block_info in Datex 7.3

Implements hook_block_info().

TODO add timezone and langcode.

File

./datex.module, line 78
Datex main module file, Datex adds php-intl support to drupal.

Code

function datex_block_info() {
  $blocks = [];
  $bc = variable_get('datex_block_count', 1);
  for ($i = 0; $i < $bc; $i++) {
    $blocks["datex_block_{$i}"] = [
      'info' => t('Datex block #' . ($i + 1)),
    ];
  }
  return $blocks;
}