You are here

function deploy_get_plans in Deploy - Content Staging 5

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

return an assoc array of deployment plans of format pid => name

3 calls to deploy_get_plans()
content_copy_deploy_menu in content_copy_deploy/content_copy_deploy.module
implementation of hook menu
system_settings_deploy_form_alter in system_settings_deploy/system_settings_deploy.module
Add deployment fields to all system settings forms.
views_deploy_menu in views_deploy/views_deploy.module
implementation of hook menu

File

./deploy.module, line 442

Code

function deploy_get_plans() {
  $result = db_query("select * from {deploy_plan} order by name");
  $plans = array();
  while ($plan = db_fetch_array($result)) {
    $plans[$plan['pid']] = $plan['name'];
  }
  return $plans;
}