You are here

function content_copy_deploy_menu in Deploy - Content Staging 6

Same name and namespace in other branches
  1. 5 content_copy_deploy/content_copy_deploy.module \content_copy_deploy_menu()

Implementation of hook menu().

File

modules/content_copy_deploy/content_copy_deploy.module, line 15

Code

function content_copy_deploy_menu() {
  $items = array();
  $plans = deploy_get_plan_options();
  if (!empty($plans)) {
    $items['admin/content/types/deploy'] = array(
      'title' => 'Deploy',
      'description' => 'Add a content type to a deployment plan.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'content_copy_deploy_add_form',
        $plans,
      ),
      'access arguments' => array(
        'add items to deployment plan',
      ),
      'file' => './content_copy_deploy.pages.inc',
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}