You are here

function redirect_entity_delete in Redirect 7

Same name and namespace in other branches
  1. 8 redirect.module \redirect_entity_delete()
  2. 7.2 redirect.module \redirect_entity_delete()

Implements hook_entity_delete().

File

./redirect.module, line 368

Code

function redirect_entity_delete($entity, $entity_type) {
  if (redirect_entity_type_supports_redirects($entity_type)) {
    redirect_delete_by_entity_path($entity_type, $entity);
  }
}