You are here

function hook_deploy_operation_info in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 deploy.api.php \hook_deploy_operation_info()

Allow modules to add preprocess or postprocess callbacks to a deployment.

Return value

array A nested array containing preprocess and/or postprocess operations. The first level of the array needs to contain the keys 'postprocess' and/or 'preprocess'.

The second level is an array of operations, where each operation contains a 'callback' key with the name of the function to be run. Each callback function accepts two parameters:

  • plan_name: The machine name of the deployment plan.
  • entity: The entity being deployed.

See also

DeployProcessor::preProcess()

DeployProcessor::postProcess()

1 function implements hook_deploy_operation_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

deploy_deploy_operation_info in ./deploy.deploy.inc
Implements hook_deploy_operation_info().
1 invocation of hook_deploy_operation_info()
deploy_get_operation_info in ./deploy.module
Helper function to get operation info.

File

./deploy.api.php, line 38
Hooks provided by the Deploy module.

Code

function hook_deploy_operation_info() {
  return array(
    'postprocess' => array(
      array(
        'callback' => 'deploy_manager_postprocess_operation',
      ),
    ),
  );
}