You are here

function deploy_manager_plan_get_options in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 deploy.manager.inc \deploy_manager_plan_get_options()

Options callback for the deploy_plan data type.

3 calls to deploy_manager_plan_get_options()
deploy_managed_ui_form_elements in modules/deploy_managed_ui/deploy_managed_ui.module
Generates form elements for hook_form_alter() implementations to call.
deploy_node_operations in ./deploy.core.inc
Implements hook_node_operations().
deploy_rules_manager_plan_get_options in ./deploy.rules.inc
Option callback.

File

./deploy.manager.inc, line 68
Deploy module functions for handling managed entities in plans.

Code

function deploy_manager_plan_get_options($args = array()) {
  $default_args = array(
    'aggregator_plugin' => 'DeployAggregatorManaged',
  );
  $args = array_merge($default_args, $args);
  $plans = deploy_plan_load_all_enabled($args);
  $options = array();
  foreach ($plans as $plan_name => $info) {
    $options[$plan_name] = $info->title;
  }
  return $options;
}