Hey all,
I’m a bit confused as to which extension hook to use, and infact if there is an extension hook available for what I’m trying to achieve…
Is there a hook that runs when a user opens an Entry EDIT page. It isn’t a worry for the new entry PUBLISH page. I just need it to know the entry_id for the entry being edited.
I also need the hook for when a user leaves the edit page. This can be on submit if that is easiest.
I found the Tab file reference stuff in the Module development… and it has the PERFECT functions that I need… but unfortunately (for me!) it actually creates a tab… which isn’t required for my extension. sigh
Any help is appreciated.
Cheers.
Hey Greg,
Thanks for the super fast reply. Much appreciated.
Unfortunately the channel_entries api only triggers when you submit the entry (which is fine for my second point!), and not when you land on the Edit page.. I’m actually not trying to manipulate the entry information at all, just trigger a function (that requires the entry_id) when a user first opens the Edit page, and then again when they leave it.
I think I might be able to sort out something using:
Do you think that this would potentially work? It just feels sort of ‘hacky’ using ‘foreign_character_conversion_array’ to do something that has nothing to do with Foreign Character Conversions!
Cheers
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.