Active
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2012 at 10:55 UTC
Updated:
20 Apr 2012 at 10:55 UTC
It took ages for me to find out why my field formatter didn't work!!!
in function file_build_content($file, $view_mode = 'full', $langcode = NULL)
if (isset($file->content['file']['#theme']) && $file->content['file']['#theme'] != 'file_link') {
unset($file->content['file']['#file']);
}
Why should we unset #file ?!?!?!?!