Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1515776-entity-original-token.patch | 3 KB | Dave Reid |
#5 | 1515776-entity-original-token.patch | 3.51 KB | Dave Reid |
#3 | 1515776-entity-original-token.patch | 3.5 KB | Dave Reid |
#1 | 1515776-entity-original-token.patch | 3.5 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #3
Dave ReidComment #5
Dave ReidThis one looks like it will work.
Comment #6
Dave ReidComment #7
Dave ReidCommitted with http://drupalcode.org/project/token.git/commit/9408560