| Versions | |
|---|---|
| 7 | hook_file_insert($file) |
Respond to a file being added.
This hook is called before a file has been added to the database. The hook doesn't distinguish between files created as a result of a copy or those created by an upload.
$file The file that is about to be saved.
drupal/
<?php
function hook_file_insert($file) {
}
?>