function custom_block_test_menu

Implements hook_menu().

File

drupal/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module, line 87
A dummy module for testing custom block related hooks.

Code

function custom_block_test_menu() {
  $items = array();

  // Add a block-view callback.
  $items['custom-block/%custom_block'] = array(
    'title callback' => 'entity_page_label',
    'title arguments' => array(
      1,
    ),
    'page callback' => 'entity_view',
    'page arguments' => array(
      1,
      'default',
    ),
    'access callback' => 'entity_page_access',
    'access arguments' => array(
      1,
      'view',
    ),
  );
  return $items;
}