Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2012 at 13:24 UTC
Updated:
22 May 2012 at 13:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidThis is actually something that token.module already kinda handle because it provides a [file:basename] token which the *actual* base name of the file from $file->uri. In the file_entity module we should use hook_token_info_alter() to change the description of the [file:name] token to match what it actually is.
Comment #2
lawik commentedMade a patch that implements hook_token_info_alter(). I couldn't see how or when file_entity.tokens.inc was included (all ears for how that happens) so I ended up in file_entity.module.
Comment #3
dave reidI modified this a bit, moved it to file_entity.tokens.inc, and committed to 7.x-2.x. Thanks!
http://drupalcode.org/project/file_entity.git/commit/06c8895