function deploy_get_plans in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 deploy.module \deploy_get_plans()
Get a list of all deployment plans.
Parameters
$show_internal: Indicates whether or not internal-only plans should be listed.
Return value
$plans Associative array of all deployment plans.
7 calls to deploy_get_plans()
- comment_deploy_form_comment_admin_overview_alter in modules/
comment_deploy/ comment_deploy.module - Implementation of hook_form_FORM_ID_alter().
- comment_deploy_menu in modules/
comment_deploy/ comment_deploy.module - Implementation of hook_menu().
- deploy_get_plan_options in ./
deploy.module - Get a list of all deployment plans, formatted appropriately for FAPI options.
- deploy_overview in ./
deploy.plans.admin.inc - Display a list of all deployment plans.
- drush_deploy in includes/
deploy.drush.inc - Deploy a plan from the command line with drush.
File
- ./
deploy.module, line 267 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_plans($show_internal = FALSE) {
$plans = array();
$where = '';
if (!$show_internal) {
$where = 'where internal = 0';
}
$result = db_query("SELECT * FROM {deploy_plan} {$where} ORDER BY name");
while ($plan = db_fetch_array($result)) {
$plans[$plan['pid']] = $plan;
}
return $plans;
}