You are here

function example_custom_block_view in Coder 8.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/InlineCommentUnitTest.inc \example_custom_block_view()
  2. 8.3.x tests/Drupal/Commenting/InlineCommentUnitTest.inc \example_custom_block_view()

Test function.

File

coder_sniffer/Drupal/Test/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;
}