Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2008 at 21:32 UTC
Updated:
16 Jun 2008 at 23:12 UTC
In function _filefield_file_delete
should
module_invoke_all('filefield', 'delete', $node, $field, $file);
be
module_invoke_all('filefield', 'file_delete', $node, $field, $file);
instead?
Comments
Comment #1
jpetso commentedHm, not sure how dopry intended that one... the 'delete' hook is called in _filefield_file_delete() unconditionally after the 'file_delete' hook is called in filefield_file_update(), and when deleted from filefield_field($op='delete'), the 'file_delete' hook is not called at all. I probably should have a look at how this is being done in imagefield's new field_file.inc.
Comment #2
dopry commentedstrike the module_invoke_all in the update function, and make the op in _filefield_file_delete file_delete... nice catch magnus.
.darrel.
Comment #3
jpetso commentedkthxfixed
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.