Assets Documentation

assets_replace_file

This hook is called right before replacing a file during a naming conflict in Assets.

Hook Parameters

$target_file An object extending Assets_base_file class for the file that is about to be replaced.

$new_file An object extending Assets_base_file class for the file that is about to replace the target file.

Notes

When a file is being replaced, it will fire the assets_replace_file and also the asets_delete_file hook afterwards.

Support

Having problems setting up and/or using Assets? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.