From 6d446d66585af4b902a0408c9f7e82402bd9f60a Mon Sep 17 00:00:00 2001 From: lawik Date: Sun, 29 Apr 2012 19:26:07 +0200 Subject: [PATCH] Implemented file_entity_token_info_alter() to update the [file:name] token description to match it's contents. --- file_entity.module | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/file_entity.module b/file_entity.module index 8d2e31c..2ec1bae 100644 --- a/file_entity.module +++ b/file_entity.module @@ -867,3 +867,10 @@ function file_entity_file_is_local($file) { $wrappers = file_get_stream_wrappers(STREAM_WRAPPERS_LOCAL); return !empty($wrappers[$scheme]) && empty($wrappers[$scheme]['remote']); } + +/** + * Implements hook_token_info_alter(). + */ +function file_entity_token_info_alter(&$data) { + $data['tokens']['file']['name']['description'] = t('The given name of the file.'); +} -- 1.7.7.3