You are here

function hansel_export_menu in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 export/hansel_export.module \hansel_export_menu()

Implements hook_menu().

File

export/hansel_export.module, line 6

Code

function hansel_export_menu() {
  $menu = array();
  $menu['admin/config/search/hansel/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hansel_export_export_form',
    ),
    'access arguments' => array(
      'administer hansel',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 8,
  );
  $menu['admin/config/search/hansel/export/dump'] = array(
    'title' => 'Importable dump',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hansel_export_export_form',
    ),
    'access arguments' => array(
      'administer hansel',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $menu['admin/config/search/hansel/export/dot'] = array(
    'title' => 'Dot format',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hansel_export_dot_form',
    ),
    'access arguments' => array(
      'administer hansel',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $menu['admin/config/search/hansel/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hansel_export_import_form',
    ),
    'access arguments' => array(
      'administer hansel',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 9,
  );
  return $menu;
}