I am working in Akeeba subscription it's based on FoF.I wanted to check some condition before user can delete subscription.

I have a plugin MyPlugin and class is -

class plgAkeebasubsMyPlugin extends JPlugin 

I thought that I'll have to add code in function onContentBeforeDelete inside this plugin but it did not work.I would like to know how can I create plugin to accomplish this.

  • Have you checked the FOF documentation?
    – Lodder
    Dec 4, 2014 at 10:59
  • @Lodder:Yes,but could not get anything helpful.
    – Irfan
    Dec 4, 2014 at 11:28

1 Answer 1


It is certainly fired, via F0FModel ($context = 'com_akeebasubs.subscriptions').

You can simply check it in PlgContentJoomla / onContentBeforeDelete (where the function is executed and returns when the context is not 'com_categories.category').

If your plugin is not being fired, check if it is enabled as System or Content plugin to receive the event.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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