You are here

function ajaxblocks_menu in Ajax Blocks 7

Same name and namespace in other branches
  1. 6 ajaxblocks.module \ajaxblocks_menu()

Implements hook_menu().

File

./ajaxblocks.module, line 11
Loads dynamic blocks on cached page for anonymous users by performing AJAX request.

Code

function ajaxblocks_menu() {
  $items = array();
  $items['ajaxblocks'] = array(
    'title' => 'Ajax blocks',
    'page callback' => 'ajaxblocks_ajax_handler',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}