From #1850020: How to create the path anyway for untraslated content?:

plach: See entity_translation_delete_confirm_submit(): you need a submit handler acting after it (pretty bad code there: we should implement the delete hook on behalf of path now that we have it).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bforchhammer’s picture

Status: Active » Needs review
FileSize
1.18 KB

Like this?

I wasn't sure where to put path_entity_translation_delete()... should it be in a separate file?

bforchhammer’s picture

Fixed misspelled function name.

plach’s picture

Status: Needs review » Reviewed & tested by the community

Nice & dandy!

plach’s picture

Title: Implement hook_entity_translation_delete() on behave of path module » Implement hook_entity_translation_delete() on behalf of path module
Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 754d358 on 7.x-1.x, factory, et-fc, revisions authored by bforchhammer, committed by plach:
    Issue #1865176 by bforchhammer: Implement hook_entity_translation_delete...

  • Commit 754d358 on 7.x-1.x, factory, et-fc, revisions, workbench authored by bforchhammer, committed by plach:
    Issue #1865176 by bforchhammer: Implement hook_entity_translation_delete...