View Full Version : Hook Name once calendar creation is complete?
stryka
08-13-2006, 04:21 AM
N/A -- on wrong track... pls delete
RS_Jelle
08-13-2006, 11:16 AM
It's in if ($_POST['do'] == 'update')
(so not in the add do if)
You can use the calendar_update_start hook location.
Guest190829
08-13-2006, 07:37 PM
Nah... that location is not giving me the desired results... i think i need to use
Eventdata_postsave but it is causing errors.... its located in class_dm_event...
ultimately, i am trying to insert the posthash of the calendar post into a custom table...
What code are you using currently?
Kirk Y
08-13-2006, 10:37 PM
Danny means what code are you presently using to do this?
Paul M
08-14-2006, 10:01 PM
calendar_update_complete
However, it's not straight forward, as that is also called by an update of an existing event - You need to check if $eventinfo['eventid'] is set, if not then it's a new addition, otherwise it's an update.
It would have been more sensible to have calendar_insert_complete for one, and calendar_update_complete for the other ....
Edit: Hmph, now he's deleted his question and posts, oh well, maybe this will help someone, someday ................
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.