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.
The description of the [file:size] token says "The size of the file, in kilobytes.". However, the function uses format_size() which if the file is large enough, will return a size formatted as MBs or higher. The description should just be changed to "The size of the file."
Comment | File | Size | Author |
---|---|---|---|
#1 | 1193044-file-size-token-description.patch | 473 bytes | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
crashtest_ CreditAttribution: crashtest_ commentedWorks for me in D7 and D8.
Comment #3
Dave ReidComment #4
Dries CreditAttribution: Dries commentedNice little bugfix. Committed to 7.x and 8.x. Thanks.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Thanks!