You are here

function deploy_plan_get_options in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 deploy.module \deploy_plan_get_options()

Options callback for the deploy_plan data type.

1 call to deploy_plan_get_options()
deploy_rules_plan_get_options in ./deploy.rules.inc
Option callback.

File

./deploy.module, line 199
Deploy module functions.

Code

function deploy_plan_get_options($args = array()) {
  $plans = deploy_plan_load_all($args);
  $options = array();
  foreach ($plans as $plan_name => $info) {
    $options[$plan_name] = $info->title;
  }
  return $options;
}