function rules_action_entity_delete

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 145

Code

function rules_action_entity_delete($wrapper, $settings, $state, $element) {
    try {
        $wrapper->delete();
    } catch (EntityMetadataWrapperException $e) {
        throw new RulesEvaluationException('Error deleting entity: @message', array(
            '@message' => $e->getMessage(),
        ), $element);
    }
}