function block_test_block_info

Implements hook_block_info().

File

modules/block/tests/block_test.module, line 19

Code

function block_test_block_info() {
    $blocks['test_cache'] = array(
        'info' => t('Test block caching'),
        'cache' => variable_get('block_test_caching', DRUPAL_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'),
    );
    return $blocks;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.