You are here

function views_deploy_menu in Deploy - Content Staging 6

Same name and namespace in other branches
  1. 5 views_deploy/views_deploy.module \views_deploy_menu()

Implementation of hook_menu().

File

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

Code

function views_deploy_menu() {
  $items = array();
  $plans = deploy_get_plans();
  if (!empty($plans)) {
    $items['admin/build/views/deploy'] = array(
      'title' => 'Deploy',
      'description' => 'Add a view to a deployment plan.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'views_deploy_add_form',
      ),
      'access arguments' => array(
        'add items to deployment plan',
      ),
      'file' => 'views_deploy.pages.inc',
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}