function hook_scald_atom_presave in Scald: Media Management made easy 7
Act on an atom being inserted or updated.
This hook is invoked from ScaldAtomController::save() before the atom is saved to the database. Like any other hook_ENTITY_TYPE_presave() hook, it is invoked before hook_entity_presave().
@codingStandardsIgnoreStart
Parameters
ScaldAtom $atom: A Scald Atom.
1 invocation of hook_scald_atom_presave()
- ScaldAtomController::save in includes/
ScaldAtomController.inc - Save changes to a Scald Atom, or create a new one.
File
- ./
scald.api.php, line 455 - Hooks related to Scald atoms and providers.
Code
function hook_scald_atom_presave($atom) {
// @codingStandardsIgnoreEnd
}