0 users online. Create an account or sign in to join them.Users

Search

I’m trying to add an EventPostSaveFilter callback function to an extension. I registered the delegate with

public function getSubscribedDelegates() {
    return array(
        array(
            'page'      => '/frontend/',
            'delegate'  => 'EventPostSaveFilter',
            'callback'  => 'EventPostSaveFilter'
        )
    );
}

and it’s stored in the database.

But the callback function doesn’t get called after submitting a form on the frontend. Are there more steps involved to get an EventPostSaveFilter working?

Through all the extensions I’ve looked at, the function names are different. try naming the callback eventPostSaveFilter with a lowercase e

The function name in my script is different. It’s just a Copy and Paste error when I simplified the example code.

Ok, I solved the issue…

I used the Dynamic Event Redirect extension with the same form/event and the EventPostSaveFilter delegate of this extension called its callback and prevented the other EventPostSaveFilter delegates to call their callback functions. Moving the EventPostSaveFilter of the Dynamic Event Redirect extension in the sym_extensions_delegates table to the bottom made the other callbacks get called again.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details