You are here

function block_refresh_menu in Block Refresh 7

Same name and namespace in other branches
  1. 5 block_refresh.module \block_refresh_menu()
  2. 6 block_refresh.module \block_refresh_menu()
  3. 7.2 block_refresh.module \block_refresh_menu()

Implements hook_menu(). DRUPAL 7 STATUS: WORKING!

File

./block_refresh.module, line 119

Code

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

  // this will display the contents of a block, if it's configured with Block Refresh
  $items['block_refresh'] = array(
    'title' => 'Block refresh block content',
    'page callback' => 'block_refresh_block_content',
    'access arguments' => array(
      BLOCK_REFRESH_ACCESS_CONTENT_PERMISSION,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}