2

I am trying to implement some codein the member_delete hook in EE. But for testing purposes, I just want the hook to trigger but don't go ahead with the actual delete.

Is there a way to do this? In some other form related extension hooks, I only need to set the error variables to be able to cancel submit. I am not sure if the same can be said of member_delete

1

Sure - just make sure you return NULL or an empty array at the end of your method. (The hook expects an array of member_ids to be sent back.)

1
  • Thanks! This is very useful information when developing future hooks. – developarvin Jul 23 '13 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.