[drupal-devel] [feature] introduce fileapi hook

Bèr Kessels drupal-devel at drupal.org
Tue Mar 15 16:21:39 UTC 2005


Issue status update for http://drupal.org/node/18934

 Project:      Drupal
 Version:      4.5.2
 Component:    file system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Bèr Kessels
 Updated by:   Bèr Kessels
 Status:       patch

This simple patch by Robert Douglas introduces a fileapi hook. Nothing
fancy, nothing difficult and most of all harldy any performance
overhead.
It simply allows modules to hook into the data of the file on:
insert
delete
update
load
The reason why this should be here, and not in nodeapi, is because, for
example media.module wants to "do stuff" with the file, like get id3
data and put that into a table on upload of a file.
Another valid use case would be to be able to track and count
downloads. Yet another case would be some file renaming, or organising
in directories.
Bèr


Bèr Kessels




More information about the drupal-devel mailing list