| Versionen | |
|---|---|
| drupal7 | field_attach_insert($obj_type, &$object) |
Save field data for a new object.
The passed in object must already contain its id and (if applicable) revision id attributes. Default values (if any) will be inserted for fields not present in the $object.
$obj_type The type of $object; e.g. 'node' or 'user'.
$object The object with fields to save.
Default values (if any) will be added to the $object parameter for fields it leaves unspecified.
This function is an autoloader for _field_attach_insert() in modules/field/field.attach.inc.
modules/
<?php
function field_attach_insert($obj_type, &$object) {
require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
return _field_attach_insert($obj_type, $object);
}
?>
Kommentare
Kommentar hinzufügen