1 layout_test.module layout_test_block_info()

Implements hook_block_info().

File

core/modules/layout/tests/layout_test/layout_test.module, line 30
Layout test module.

Code

function layout_test_block_info() {
  $blocks['foo'] = array(
    'info' => t('Layout foo block'),
    'description' => t('A testing block for layouts.'),
  );
  $blocks['bar'] = array(
    'info' => t('Layout bar block'),
    'description' => t('A testing block for layouts with contexts.'),
    'required contexts' => array(
      'my_node' => 'node',
      'my_user' => 'user',
    ),
  );
  $blocks['test_node_title'] = array(
    'info' => t('Node title test'),
    'description' => t('A testing block for layouts that shows the node title.'),
    'required contexts' => array(
      'node' => 'node',
    ),
  );
  $blocks['test_passthrough'] = array(
    'info' => t('String pass-through test'),
    'description' => t('A testing block for layouts that shows string from the URL.'),
    'required contexts' => array(
      'string_value' => 'string',
    ),
  );
  return $blocks;
}