1 block_test.module block_test_block_info()

Implements hook_block_info().

File

core/modules/block/tests/block_test/block_test.module, line 10
Provide test blocks.

Code

function block_test_block_info() {
  $blocks['test_cache'] = array(
    'info' => t('Test block caching'),
    'cache' => state_get('block_test_caching', BACKDROP_CACHE_PER_ROLE),
  );

  $blocks['test_underscore'] = array(
    'info' => t('Test underscore'),
  );

  $blocks['test-hyphen'] = array(
    'info' => t('Test hyphen'),
  );

  $blocks['test_html_id'] = array(
    'info' => t('Test block html id'),
    'description' => t('Original description.'),
  );
  return $blocks;
}