You are here

function content_copy_deploy_menu in Deploy - Content Staging 5

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

implementation of hook menu

File

content_copy_deploy/content_copy_deploy.module, line 9

Code

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