You are here

function deploy_manager_entity_remove in Deploy - Content Staging 7.3

Action callback for the "Delete Entity From Plan" action.

Parameters

object $dme: The deploy manager entity to be deleted.

File

./deploy.rules.inc, line 143
Rules implementations.

Code

function deploy_manager_entity_remove($dme) {
  $label = $dme
    ->label();
  $dme
    ->delete();
  drupal_set_message(t('Entity has been removed: @label', [
    '@label' => $label,
  ]));
}