Hooks/before save record

before_save_record

arguments: $record Omeka_Record

Fires before any database record is saved. This includes both insert and update operations.

Notes

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