You are here

function path_breadcrumbs_menu in Path Breadcrumbs 7

Implements hook_menu().

File

./path_breadcrumbs.module, line 6

Code

function path_breadcrumbs_menu() {
  $items['admin/structure/path-breadcrumbs'] = array(
    'title' => 'Path breadcrumbs',
    'page callback' => 'path_breadcrumbs_admin_page',
    'access arguments' => array(
      'administer path breadcrumbs',
    ),
    'file' => 'path_breadcrumbs.admin.inc',
  );
  $items['admin/structure/path-breadcrumbs/create'] = array(
    'title' => 'Create path breadcrumbs',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'path_breadcrumbs_edit_form',
    ),
    'access arguments' => array(
      'administer path breadcrumbs',
    ),
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/structure/path-breadcrumbs/edit/%path_breadcrumbs'] = array(
    'title callback' => 'path_breadcrumbs_edit_page_title',
    'title arguments' => array(
      4,
      'edit',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'path_breadcrumbs_edit_form',
      4,
    ),
    'access arguments' => array(
      'administer path breadcrumbs',
    ),
  );
  $items['admin/structure/path-breadcrumbs/delete/%path_breadcrumbs'] = array(
    'title callback' => 'path_breadcrumbs_edit_page_title',
    'title arguments' => array(
      4,
      'delete',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'path_breadcrumbs_delete_form',
      4,
    ),
    'access arguments' => array(
      'administer path breadcrumbs',
    ),
  );
  return $items;
}