function deploy_get_plan_options in Deploy - Content Staging 6
Get a list of all deployment plans, formatted appropriately for FAPI options.
Parameters
$show_internal: Indicates whether or not internal-only plans should be listed.
Return value
$plans Associative array of all deployment plans ('pid' => 'name').
6 calls to deploy_get_plan_options()
- comment_deploy_operations_add_form in modules/
comment_deploy/ comment_deploy.pages.inc - Display comment "add to plan" form.
- content_copy_deploy_menu in modules/
content_copy_deploy/ content_copy_deploy.module - Implementation of hook menu().
- node_deploy_add_form in modules/
node_deploy/ node_deploy.pages.inc - Display node "add to plan" form.
- node_deploy_operations_add_form in modules/
node_deploy/ node_deploy.pages.inc - Display node "add to plan" form.
- system_settings_deploy_form_alter in modules/
system_settings_deploy/ system_settings_deploy.module - Implementation of hook_form_alter().
File
- ./
deploy.module, line 289 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_plan_options($show_internal = FALSE) {
$options = array();
$plans = deploy_get_plans($show_internal);
foreach ($plans as $plan) {
$options[$plan['pid']] = $plan['name'];
}
return $options;
}