Skip to main content
edited title
Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

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

edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
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