You are here

function comment_deploy_menu in Deploy - Content Staging 6

Implementation of hook_menu().

File

modules/comment_deploy/comment_deploy.module, line 12
Deployment API which enables modules to deploy items between servers.

Code

function comment_deploy_menu() {
  $items = array();
  $plans = deploy_get_plans();
  $items['comment_operations/deploy'] = array(
    'title' => t('Deploy'),
    'description' => t('Add comments to a deployment plan.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'comment_deploy_operations_add_form',
      2,
    ),
    'access arguments' => array(
      'add items to deployment plan',
    ),
    'file' => 'comment_deploy.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['comment_operations/deploy_now'] = array(
    'title' => t('Deploy'),
    'description' => t('Deploy comments.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'comment_deploy_operations_add_now_form',
      2,
    ),
    'access arguments' => array(
      'deploy items',
    ),
    'file' => 'comment_deploy.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}