You are here

function deploy_plan_load_all in Deploy - Content Staging 7.2

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

Loader callback for all deployment plans.

6 calls to deploy_plan_load_all()
deploy_manager_plan_load in ./deploy.manager.inc
Loads a managed plan with the given name, returns false if no such plan exists.
deploy_manager_plan_load_all in ./deploy.manager.inc
Returns a list of all managed plans, i.e. all plans that use the DeployAggregatorManager aggregator plugin.
deploy_plan_get_options in ./deploy.module
Options callback for the deploy_plan data type.
deploy_plan_load in ./deploy.module
Loader callback for a deployment plan.
deploy_services_index in modules/deploy_services/deploy_services.services.inc
Services index operation callback.

... See full list

1 string reference to 'deploy_plan_load_all'
deploy_schema in ./deploy.install
Implements hook_schema().

File

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

Code

function deploy_plan_load_all($args = array()) {
  $type = !empty($args) ? 'conditions' : 'all';
  ctools_include('export');
  $plans = ctools_export_load_object('deploy_plans', $type, $args);
  if (isset($plans)) {

    // Load each plan's configuration into itself.
    foreach ($plans as &$plan) {
      $plan
        ->load();
    }
    return $plans;
  }
}