You are here

function bundle_clone_menu in bundle clone 7

File

./bundle_clone.module, line 2

Code

function bundle_clone_menu() {
  $items['admin/structure/bundle_clone'] = array(
    'title' => 'Bundle clone',
    'description' => 'Clone any entity\'s bundle fields into a new bundle of the same entity',
    'page callback' => 'bundle_clone_list',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/structure/bundle_clone/%'] = array(
    'title' => 'Bundle clone',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bundle_clone_admin',
      3,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'bundle_clone.clone.inc',
  );
  $items['admin/structure/bundle_clone/%/clone'] = array(
    'title' => 'Clone fields',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'bundle_clone.clone.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/bundle_clone/%/display'] = array(
    'title' => 'Update display',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bundle_clone_admin_display',
      3,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'bundle_clone.display.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}