Teh _file_download hook is apparenly not documented on drupaldocs.

Comments

killes@www.drop.org’s picture

Project: Drupal core » Documentation
Component: file system » Admin Guide

moving to docs.

sepeck’s picture

Status: Active » Closed (fixed)
webchick’s picture

Component: Admin Guide » Documentation in CVS
Status: Closed (fixed) » Active

Opening this back up.

http://api.drupal.org/api/5/function/hook_file_download

"Allow file downloads."

Um. Yes. That's helpful. ;)

We need a much better description here. Maybe something can be pulled from the hook_download_file example code in CVS.

brunodbo’s picture

Project: Documentation » Drupal core
Version: » 7.x-dev
Component: Documentation in CVS » documentation
brunodbo’s picture

Changed the component to reflect the new component categorization. See http://drupal.org/node/301443.

lilou’s picture

Status: Active » Fixed

see : http://api.drupal.org/api/function/hook_file_download/7

Control access to private file downloads and specify HTTP headers.
This hook allows modules enforce permissions on file downloads when the private file download method is selected. Modules can also provide headers to specify information like the file's name or MIME type.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.