You are here

function node_deploy_menu in Deploy - Content Staging 6

Implementation of hook_menu().

File

modules/node_deploy/node_deploy.module, line 16
Deployment API which enables modules to deploy items between servers.

Code

function node_deploy_menu() {
  $items = array();
  $items['node/%node/deploy'] = array(
    'title' => t('Deploy'),
    'description' => t('Add a node to a deployment plan.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'node_deploy_add_form',
      1,
    ),
    'access arguments' => array(
      'add items to deployment plan',
    ),
    'file' => 'node_deploy.pages.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['node_operations/deploy'] = array(
    'title' => t('Deploy'),
    'description' => t('Add nodes to a deployment plan.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'node_deploy_operations_add_form',
      2,
    ),
    'access arguments' => array(
      'add items to deployment plan',
    ),
    'file' => 'node_deploy.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['node_operations/deploy_now'] = array(
    'title' => t('Deploy'),
    'description' => t('Deploy nodes.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'node_deploy_operations_add_now_form',
      2,
    ),
    'access arguments' => array(
      'deploy items',
    ),
    'file' => 'node_deploy.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}