Fires before any database record of type <model> is saved. This includes both insert and update operations.
Since this hook fires before the record is saved, the record ID will not be available, but changes made to any other record properties will be saved.
- The record being edited
array or falsepost
- The post data, or false if none
- Whether the record is being inserted