Actually use the set the apiHooks attribute for the event handler