You are here

function deploy_menu in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 deploy.module \deploy_menu()

Implementation of hook_menu().

File

./deploy.module, line 32

Code

function deploy_menu() {
  $items = array();
  $items[] = array(
    'path' => 'admin/build/deploy',
    'title' => t('Deployment'),
    'callback' => 'deploy_overview',
    'access' => user_access('administer deployment'),
    'description' => t('Deployment'),
  );
  $items[] = array(
    'path' => 'admin/build/deploy/plans',
    'title' => t('Plans'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access' => user_access('administer deployment'),
  );
  $items[] = array(
    'path' => 'admin/build/deploy/servers',
    'title' => t('Servers'),
    'description' => t('Manage deployment servers'),
    'callback' => 'deploy_server_overview',
    'access' => user_access('administer deployment'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/logs',
    'title' => t('Deployment Log'),
    'description' => t('View logs of past deployments'),
    'callback' => 'deploy_logs_overview',
    'access' => user_access('administer deployment'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/logs/details',
    'title' => t('Deployment Log Details'),
    'description' => t('View detailed logs of a past deployment'),
    'callback' => 'deploy_logs_details',
    'access' => user_access('administer deployment'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/add',
    'title' => t('Add a deployment plan'),
    'description' => t('Add a deployment plan.'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_plan_form',
    ),
    'access' => user_access('administer deployment'),
    'type' => MENU_CALLBACK,
    'weight' => 2,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/plan',
    'title' => t('Edit plan'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_plan_form',
    ),
    'access' => user_access('administer deployment'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/server/add',
    'title' => t('Add server'),
    'description' => t('Add a deployment server.'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_server_form',
    ),
    'access' => user_access('administer deployment'),
    'type' => MENU_CALLBACK,
    'weight' => 2,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/server',
    'title' => t('Edit server'),
    'description' => t('Edit a deployment server.'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_server_form',
    ),
    'access' => user_access('administer deployment'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/push',
    'title' => t('Push a plan live'),
    'callback' => 'deploy_push',
    'type' => MENU_CALLBACK,
    'access' => user_access('deploy items'),
    'weight' => 1,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/push/results',
    'title' => t('Push results'),
    'callback' => 'deploy_push_results',
    'type' => MENU_CALLBACK,
    'access' => user_access('deploy items'),
    'weight' => 1,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/list',
    'title' => t('View deployment plan items'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_list',
    ),
    'type' => MENU_CALLBACK,
    'access' => user_access('administer deployment'),
    'weight' => 1,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/delete/item',
    'title' => t('Delete a deployment plan item'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_delete_item_form',
    ),
    'type' => MENU_CALLBACK,
    'access' => user_access('administer deployment'),
    'weight' => 1,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/delete/plan',
    'title' => t('Delete a deployment plan'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_delete_plan_form',
    ),
    'type' => MENU_CALLBACK,
    'access' => user_access('administer deployment'),
    'weight' => 1,
  );
  $items[] = array(
    'path' => 'admin/build/deploy/delete/server',
    'title' => t('Delete a server'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'deploy_delete_server_form',
    ),
    'type' => MENU_CALLBACK,
    'access' => user_access('administer deployment'),
    'weight' => 1,
  );
  return $items;
}