function menu_attach_block_menu in Menu Attach Block 7
Implements hook_menu().
File
- ./
menu_attach_block.module, line 19 - Module to enable adding a block to menu item.
Code
function menu_attach_block_menu() {
return array(
'menu_attach_block/ajax/%' => array(
'title' => 'AJAX callback for providing rendered block contents.',
'page callback' => 'menu_attach_block_render_ajax_block',
'page arguments' => array(
2,
),
'type' => MENU_CALLBACK,
'access callback' => TRUE,
),
'<block>' => array(
'page callback' => 'drupal_not_found',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
),
'<droplink>' => array(
'page callback' => 'drupal_not_found',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
),
);
}