field_attach_presave
- Versions
- 7
field_attach_presave($obj_type, $object)
Perform necessary operations just before fields data get saved.
We take no specific action here, we just give other modules the opportunity to act.
Parameters
$obj_type The type of $object; e.g. 'node' or 'user'.
$object The object with fields to process.
Related topics
Code
modules/field/field.attach.inc, line 791
<?php
function field_attach_presave($obj_type, $object) {
_field_invoke('presave', $obj_type, $object);
// Let other modules act on presaving the object.
module_invoke_all('field_attach_presave', $obj_type, $object);
}
?>Login or register to post comments 