You are here

function bean_admin_ui_menu in Bean (for Drupal 7) 7

Implements hook_menu().

File

bean_admin_ui/bean_admin_ui.module, line 13

Code

function bean_admin_ui_menu() {
  $items = array();
  $items['admin/structure/block-types'] = array(
    'title' => 'Block types',
    'description' => 'Manage block types, including fields, settings, etc.',
    'page callback' => 'bean_admin_ui_admin_page',
    'access arguments' => array(
      'administer bean types',
    ),
    'file' => 'bean_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(
      'bean_admin_ui_type_form',
    ),
    'access arguments' => array(
      'administer bean types',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'bean_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/manage/%bean_type'] = array(
    'title' => 'Edit block type',
    'title arguments' => array(
      4,
    ),
    'title callback' => 'bean_admin_ui_page_title',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bean_admin_ui_type_form',
      4,
    ),
    'access arguments' => array(
      'administer bean types',
    ),
    'file' => 'bean_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/manage/%bean_type/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/block-types/manage/%bean_type/delete'] = array(
    'title' => 'Delete',
    'page arguments' => array(
      'bean_admin_ui_type_op_confirm',
      'delete',
      4,
    ),
    'access arguments' => array(
      'administer bean types',
    ),
    'file' => 'bean_admin_ui.admin.inc',
  );
  $items['admin/structure/block-types/manage/%bean_type/revert'] = array(
    'title' => 'Delete',
    'page arguments' => array(
      'bean_admin_ui_type_op_confirm',
      'revert',
      4,
    ),
    'access arguments' => array(
      'administer bean types',
    ),
    'file' => 'bean_admin_ui.admin.inc',
  );
  return $items;
}