PDA

View Full Version : When is attachdata_postsave hook called?


XTF
08-26-2010, 08:18 AM
When is the attachdata_postsave hook in includes\class_dm_attachment.php called?
In 3.8 it was called when attaching a file, but in 4.0 it doesn't seem to be called at all.

Lynne
08-26-2010, 02:03 PM
It looks like it is called when the post is saved. Why do you think it isn't being called? Perhaps your syntax is incorrect for your plugin?

XTF
09-04-2010, 07:45 AM
Wouldn't it show an error in this case?

I use errorlog('xbt_attachdata_postsave'); as code and this text is never logged.

Lynne
09-04-2010, 03:14 PM
Don't you mean error_log?

XTF
09-07-2010, 03:37 PM
Yes, but even then nothing gets logged.

XTF
09-16-2010, 05:57 PM
Somebody?

Lynne
09-16-2010, 06:01 PM
Are you even sure post_save_each_filedata is getting called?

XTF
09-17-2010, 07:39 AM
No.

compwhizii
09-18-2010, 02:04 AM
Send an email with vbmail()