Skip to main content
1 of 3
David DIVERRES
  • 764
  • 2
  • 6
  • 15

Forbid access to file page (view display mode = full)

I want to disable access to the view display page of file by url like file/fid.

What's the good way for this? I have tried to use the hook_node_view() but it not called for the files.

enter image description here

David DIVERRES
  • 764
  • 2
  • 6
  • 15