You are here

function hook_deploy_plan_publish in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 deploy.api.php \hook_deploy_plan_publish()

Allow module to react to publishing a deploy plan.

Parameters

$status: The boolean result of publishing the plan.

1 invocation of hook_deploy_plan_publish()
DeployEndpoint::publish in includes/DeployEndpoint.inc
Publishes all entities on the endpoint. Happens after deployment.

File

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

Code

function hook_deploy_plan_publish($status) {

  // Set a message based on the deployment result.
  if ($status) {
    drupal_set_message(t('Deployment was successful.'));
  }
  else {
    drupal_set_message(t('Deployment failed.'), 'error');
  }
}