Patch - Add support for offline events/memberships

The buildform hook only supported offline contributions but should also work on offline event registrations and offline memberships