Hooks/after save form record

Fires after any database record is saved using its saveForm() method. HTML forms that insert or edit records will cause this hook to fire. This includes both insert and update operations.

Arguments

  • $record (Omeka_Record) The record that was just saved.
  • $post (array) The submitted POST data from the form.

Notes

  • Since this hook fires after the record is saved, the record ID will be available.
  • Changes made to any record properties will not be saved in the database.