No “groups_before_delete_group” hook?
I’m writing a Google Docs plugin for BP Groups. It stores its one setting – specifically, the shared Google Docs folder ID that’s created for the BP group – in the groups metadata table. It works great when I need to access it for group creation, member joining and leaving hooks.
However, I need to be able to delete this Google Docs folder during group delete, but the only hook I can find that is triggered during the delete step occurs *after* the group and all its metadata has already been deleted. Why is there no action that’s triggered immediately before the group is deleted? All that’s left for plugin implementors is the group ID at this point, which is hardly useful to me – everything else is already gone.
I’m thinking the only way around this is to create a new table for this information, which seems a bit cumbersome and a lot more work than I’d like to do. The metadata approach seems ideal – if only I could access that data in time.
- The topic ‘No “groups_before_delete_group” hook?’ is closed to new replies.