View source
<?php
function deploy_ui_menu() {
$items = array();
$items['admin/structure/deploy'] = array(
'title' => 'Deployment',
'description' => 'Manage deployment plans, endpoints etc.',
'page callback' => 'deploy_ui_overview_page',
'access arguments' => array(
'administer deployments',
),
'file' => 'deploy_ui.pages.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/structure/deploy/overview'] = array(
'title' => 'Overview',
'description' => 'Administrative overview over deployments',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -50,
);
$items['admin/structure/deploy/%deploy_plan/empty'] = array(
'title' => 'Empty',
'description' => 'Remove all content from the plan',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'deploy_ui_empty_plan_form',
3,
),
'access arguments' => array(
'administer deployments',
),
'file' => 'deploy_ui.pages.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
function deploy_ui_theme() {
return array(
'deploy_ui_overview' => array(
'variables' => array(
'blocks' => array(),
),
'file' => 'deploy_ui.pages.inc',
),
'deploy_ui_overview_plan_content' => array(
'variables' => array(
'info' => array(),
),
'file' => 'deploy_ui.pages.inc',
),
);
}
function deploy_ui_ctools_plugin_directory($module, $plugin) {
if ($module == 'ctools' && $plugin == 'export_ui') {
return 'plugins/' . $plugin;
}
}