You are here

function content_type_clone_menu in Content Type Clone 7

Implements hook_menu().

File

./content_type_clone.module, line 107
Content Type Clone primary module file.

Code

function content_type_clone_menu() {

  // Content type clone form url.
  $items['admin/%/clone/create'] = array(
    'title' => '',
    'access arguments' => array(
      'administer content types',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_type_clone_create_form',
      1,
    ),
    'file' => 'includes/clone.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/structure/types/manage/%node_type/clone'] = array(
    'title' => 'Clone',
    'access arguments' => array(
      'administer content types',
    ),
    'page callback' => 'content_type_clone_menu_redirect',
    'file' => 'includes/page.admin.inc',
    'page arguments' => array(
      4,
    ),
  );
  return $items;
}