You are here

function menu_block_menu in Menu Block 6.2

Same name and namespace in other branches
  1. 5.2 menu_block.module \menu_block_menu()
  2. 5 menu_block.module \menu_block_menu()
  3. 7.3 menu_block.module \menu_block_menu()
  4. 7.2 menu_block.module \menu_block_menu()

Implements hook_menu().

File

./menu_block.module, line 15
Provides configurable blocks of menu items.

Code

function menu_block_menu() {
  $items['admin/build/block/add-menu-block'] = array(
    'title' => 'Add menu block',
    'description' => 'Add a new menu block.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_block_add_block_form',
    ),
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'menu_block.admin.inc',
  );
  $items['admin/build/block/delete-menu-block'] = array(
    'title' => 'Delete menu block',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_block_delete',
    ),
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'menu_block.admin.inc',
  );
  $items['admin/settings/menu_block'] = array(
    'title' => 'Menu block',
    'description' => 'Configure menu block.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_block_admin_settings_form',
    ),
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'menu_block.admin.inc',
  );
  return $items;
}