hook_file_insert

Versions
7
hook_file_insert(&$file)

Respond to a file being added.

This hook is called when 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.

See also

file_save()

Parameters

$file The file that has just been created.

Related topics

Code

modules/system/system.api.php, line 1529

<?php
function hook_file_insert(&$file) {

}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.