function example_custom_block_view in Coder 8.3.x
Same name and namespace in other branches
- 8.3 tests/Drupal/Commenting/InlineCommentUnitTest.inc \example_custom_block_view()
- 8.2 coder_sniffer/Drupal/Test/Commenting/InlineCommentUnitTest.inc \example_custom_block_view()
Test function.
File
- tests/
Drupal/ Commenting/ InlineCommentUnitTest.inc, line 53 - Example inline comments.
Code
function example_custom_block_view($delta = '') {
// This example is adapted from node.module.
$block = array();
switch ($delta) {
case 'my_block':
// $block['subject'] = t('custom twitter feed');
$block['content'] = test();
break;
}
return $block;
}