You are here

function rules_action_entity_delete in Rules 7.2

Action: Delete entities.

Related topics

1 string reference to 'rules_action_entity_delete'
rules_entity_action_info in modules/entity.rules.inc
Implements hook_rules_action_info() on behalf of the entity module.

File

modules/entity.eval.inc, line 139
Contains rules integration for entities needed during evaluation.

Code

function rules_action_entity_delete($wrapper, $settings, $state, $element) {
  try {
    $wrapper
      ->delete();
  } catch (EntityMetadataWrapperException $e) {
    throw new RulesEvaluationException($e
      ->getMessage(), array(), $element);
  }
}