Hooks/before insert record

before_insert_record

arguments: $record Omeka_Record

Fires before any database record is inserted. Updates to existing records do not cause this hook to fire.

Notes

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