You are here

function boxes_admin_ui_menu in Boxes 7.2

Implements hook_menu().

File

boxes_admin_ui/boxes_admin_ui.module, line 11
Boxes Admin UI

Code

function boxes_admin_ui_menu() {
  $items = array();
  $items['admin/structure/block-types'] = array(
    'title' => 'Block Types',
    'description' => 'Manage Block Types',
    'page callback' => 'boxes_admin_ui_admin_page',
    'access arguments' => array(
      'administer box types',
    ),
    'file' => 'boxes_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/structure/block-types/add'] = array(
    'title' => 'Add block type',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'boxes_admin_ui_type_form',
    ),
    'access arguments' => array(
      'administer box types',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'boxes_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/manage/%boxes_type'] = array(
    'title' => 'Edit block type',
    'title arguments' => array(
      4,
    ),
    'title callback' => 'boxes_admin_ui_page_title',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'boxes_admin_ui_type_form',
      4,
    ),
    'access arguments' => array(
      'administer box types',
    ),
    'file' => 'boxes_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/manage/%boxes_type/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/block-types/manage/%boxes_type/delete'] = array(
    'title' => 'Delete',
    'page arguments' => array(
      'boxes_admin_ui_type_delete_confirm',
      4,
    ),
    'access arguments' => array(
      'administer box types',
    ),
    'file' => 'boxes_admin_ui.admin.inc',
  );
  return $items;
}