FileField paths has a use case for accessing the properties of $file->original from in hook_file_presave(). Let's make it easy and provide an [entity:original] chained token for all entity types.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
FileSize
3.5 KB

Status: Needs review » Needs work

The last submitted patch, 1515776-entity-original-token.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
3.5 KB

Status: Needs review » Needs work

The last submitted patch, 1515776-entity-original-token.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
3.51 KB

This one looks like it will work.

Dave Reid’s picture

Dave Reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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