![]() |
DataMan post_save_once... is there post_delete_once?
In my dataman, I have this function...
Code:
function post_save_once() And it works GREAT! So my question of course, from the title... is there a function for running post delete? I tried both post_delete() and post_delete_once() and neither of them did anything. Is there something I am missing, or am I just out of luck? Code:
function post_delete_once() Basically, right now, whenever I post a comment to my mod, it will run the build_comment_count script, and update the number of comments in my database. However, when I delete a comment, I wish it to also run the build_comment_count script, so that it can update the number of comments again; but I doesn't seem to do it with the code above. BTW, are there any comprehensive guides on datamanagers? The manual is a little lacking. --------------- Added [DATE]1270223838[/DATE] at [TIME]1270223838[/TIME] --------------- Looking at the datamanager class... yes, post_delete does exist... However, it seems that $this->fetch_field fails, since the data entry no longer exists. Would there be a viable solution to this problem? |
All times are GMT. The time now is 06:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|