I’ve created an extension that I would like to execute when a user submits a new weblog entry or when they update an existing weblog entry.
Which extension hook or hooks should I use to accomplish this?
Thanks,
Chris
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 09, 2010 9:51pm
Subscribe [3]#1 / Feb 09, 2010 9:51pm
I’ve created an extension that I would like to execute when a user submits a new weblog entry or when they update an existing weblog entry.
Which extension hook or hooks should I use to accomplish this?
Thanks,
Chris
#2 / Feb 10, 2010 8:25am
Hi there,
You’ll need to look at the various submit_new_entry hooks, depending on at which point you want your extension to intercede.
#3 / Feb 10, 2010 8:53am
If you want to support Quicksave you might also want to use publish_form_start and test for $which == “save”