function esi_menu in ESI: Edge Side Includes 6.2
Same name and namespace in other branches
- 7.3 esi.module \esi_menu()
Implementation of hook_menu(). Define a menu-handler.
File
- ./
esi.module, line 151 - Adds support for ESI (Edge-Side-Include) integration, allowing blocks to be\ delivered by ESI, with support for per-block cache times.
Code
function esi_menu() {
$items = array();
$items['esi/block/%'] = array(
'title' => 'ESI handler',
'page callback' => 'esi__block_handler',
'page arguments' => array(
2,
3,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['esi/panels_pane/%'] = array(
'title' => 'ESI handler',
'page callback' => 'esi__panel_pane_handler',
'page arguments' => array(
2,
3,
4,
5,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/settings/esi'] = array(
'title' => 'ESI Settings',
'description' => 'Configure ESI Default Settings',
'page callback' => 'esi_admin_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'esi.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin_menu/flush-cache/esi'] = array(
'page callback' => 'esi_admin_flush_cache',
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer site configuration',
),
'file' => 'esi.admin.inc',
);
return $items;
}